C# Class System.SecurityUtils

Show file Open project: dotnet/corefx

Private Methods

Method Description
MethodInfoInvoke ( MethodInfo method, object target, object args ) : object
SecureCreateInstance ( Type type ) : object

This helper method provides safe access to Activator.CreateInstance. NOTE: This overload will work only with public .ctors.

SecureCreateInstance ( Type type, object args ) : object

This helper method provides safe access to Activator.CreateInstance. Set allowNonPublic to true if you want non public ctors to be used.