1.新增context内置变量2.修复一些问题

This commit is contained in:
2025-10-16 20:15:35 +08:00
parent 97a6e4d76b
commit 52e8e85542
3 changed files with 57 additions and 31 deletions

View File

@@ -25,15 +25,14 @@ namespace Convention.RScript
internalData = value;
return;
}
internalData = Convert.ChangeType(value, type);
if (type == typeof(object) || type == value.GetType())
internalData = value;
else
internalData = Convert.ChangeType(value, type);
}
}
private object internalData;
public RScriptVariableEntry(object data) : this()
{
this.data = data;
}
public RScriptVariableEntry(Type type, object data) : this()
{
this.type = type;