/// <summary> /// Creates a new instance of the safe constructor wrapper. /// </summary> /// <param name="constructorInfo">Constructor to wrap.</param> public SafeConstructor(ConstructorInfo constructorInfo) { _constructorInfo = constructorInfo; try { _constructor = DynamicReflectionManager.CreateConstructor(constructorInfo); } catch { _isOptimized = false; } }