mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
Fixing obnoxious bug from unsupported features in Type.GetType
This commit is contained in:
@@ -53,7 +53,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find the smallest possible name representation for the type that will still resolve
|
// Find the smallest possible name representation for the type that will still resolve
|
||||||
string name = Type.GetType(type.FullName, false, true) == null
|
string name = Type.GetType(type.FullName) == null
|
||||||
? type.AssemblyQualifiedName
|
? type.AssemblyQualifiedName
|
||||||
: type.FullName;
|
: type.FullName;
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
throw new ArgumentNullException("extends");
|
throw new ArgumentNullException("extends");
|
||||||
|
|
||||||
string value = extends.GetValueAsString();
|
string value = extends.GetValueAsString();
|
||||||
return Type.GetType(value, false, true);
|
return Type.GetType(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user