Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BindCreateFromName()

static Func< string, object > System.Security.Cryptography.CryptoConfigForwarder.BindCreateFromName ( )
inlinestaticprivate

Definition at line 11 of file CryptoConfigForwarder.cs.

12 {
13 Type type = Type.GetType("System.Security.Cryptography.CryptoConfig, System.Security.Cryptography.Algorithms", throwOnError: true);
14 MethodInfo method = type.GetMethod("CreateFromName", new Type[1] { typeof(string) });
15 if (method == null)
16 {
17 throw new MissingMethodException(type.FullName, "CreateFromName");
18 }
19 return method.CreateDelegate<Func<string, object>>();
20 }
virtual Delegate CreateDelegate(Type delegateType)
Definition MethodInfo.cs:48

References System.Reflection.MethodInfo.CreateDelegate(), System.Type.GetType(), and System.type.