diff --git a/ICD.Common.Utils/ReflectionUtils.cs b/ICD.Common.Utils/ReflectionUtils.cs index 0a6ecb8..66d921a 100644 --- a/ICD.Common.Utils/ReflectionUtils.cs +++ b/ICD.Common.Utils/ReflectionUtils.cs @@ -41,8 +41,15 @@ namespace ICD.Common.Utils ConstructorInfo constructor = type.GetTypeInfo().GetConstructor(types); #endif - if (constructor != null) - return constructor.Invoke(values); + try + { + if (constructor != null) + return constructor.Invoke(values); + } + catch (TypeLoadException e) + { + throw new TypeLoadException(e.GetBaseException().Message); + } string message = string.Format("Unable to find constructor for {0}", type.Name); throw new InvalidOperationException(message);