Fix binding issue on evaluation
This commit is contained in:
@@ -10,16 +10,7 @@ namespace Upsilon.BaseTypes.UserData
|
||||
Value = obj;
|
||||
_typeInfo = UserDataTypeHandler.GetTypeInfo(obj.GetType());
|
||||
}
|
||||
public override TypeContainer Type
|
||||
{
|
||||
get
|
||||
{
|
||||
var typeData = _typeInfo.BoundTypeName;
|
||||
if (typeData != null)
|
||||
return new TypeContainer(typeData);
|
||||
return BaseTypes.Type.Unknown;
|
||||
}
|
||||
}
|
||||
public override TypeContainer Type { get; } = new IgnoredUserDataTypeContainer();
|
||||
|
||||
private object Value { get; }
|
||||
private readonly UserDataType _typeInfo;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace Upsilon.BaseTypes.UserData
|
||||
Subtraction,
|
||||
Multiplication,
|
||||
Division,
|
||||
Modulo
|
||||
}
|
||||
|
||||
public class UserDataTypeOperators
|
||||
@@ -64,6 +65,9 @@ namespace Upsilon.BaseTypes.UserData
|
||||
case "op_Division":
|
||||
LoadMethod(OperatorType.Division, methodInfo);
|
||||
break;
|
||||
case "op_Modulus":
|
||||
LoadMethod(OperatorType.Modulo, methodInfo);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user