diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-02 07:44:31 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-02 07:44:31 +0200 |
| commit | 89a58fbf483a4b08309c640dfd07ddf8a58e8bd1 (patch) | |
| tree | babd89c575c4aba187a84afa139fca6c5e0a90ca | |
| parent | e5df4ae295d164042a91fb7f75cec4323d88833f (diff) | |
ConvertedVal in valueRefx converted by boxing if isAssignableFrom instead of Convert.ChangeType
| -rw-r--r-- | Crow/src/IML/CompilerServices.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Crow/src/IML/CompilerServices.cs b/Crow/src/IML/CompilerServices.cs index f47f4fb8..224338fb 100644 --- a/Crow/src/IML/CompilerServices.cs +++ b/Crow/src/IML/CompilerServices.cs @@ -319,7 +319,7 @@ namespace Crow.IML else { origType = value.GetType (); if (destType.IsAssignableFrom (origType)) - convertedVal = Convert.ChangeType (value, destType); + convertedVal = value;// Convert.ChangeType (value, destType); else if (origType == typeof(string) & destType.IsPrimitive) convertedVal = Convert.ChangeType(value, destType); else if (origType.IsPrimitive & destType.IsPrimitive) |