修复了一些bug
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Convention.RScript
|
||||
else
|
||||
internalData = Activator.CreateInstance(type);
|
||||
}
|
||||
else if (type == typeof(object) || type == value.GetType())
|
||||
else if (type == typeof(object) || type.IsAssignableFrom(value.GetType()))
|
||||
internalData = value;
|
||||
else
|
||||
internalData = Convert.ChangeType(value, type);
|
||||
|
||||
Reference in New Issue
Block a user