More fixes for function binding
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Upsilon.BoundTypes;
|
||||
using Upsilon.Evaluator;
|
||||
using Upsilon.Text;
|
||||
|
||||
@@ -8,9 +9,12 @@ namespace Upsilon.BaseTypes.UserData
|
||||
public GenericUserData(object obj)
|
||||
{
|
||||
Value = obj;
|
||||
_typeInfo = UserDataTypeHandler.GetTypeInfo(obj.GetType());
|
||||
var type = obj.GetType();
|
||||
_typeInfo = UserDataTypeHandler.GetTypeInfo(type);
|
||||
Type = new TypeContainer(_typeInfo.BoundTypeName);
|
||||
|
||||
}
|
||||
public override TypeContainer Type { get; } = new IgnoredUserDataTypeContainer();
|
||||
public override TypeContainer Type { get; }
|
||||
|
||||
private object Value { get; }
|
||||
private readonly UserDataType _typeInfo;
|
||||
|
||||
Reference in New Issue
Block a user