mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Fixing obnoxious bug from unsupported features in Type.GetType
This commit is contained in:
parent
1ac5e26992
commit
d295aa4591
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue