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

◆ Delegate() [2/2]

System.Delegate.Delegate ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type target,
string method )
inlineprotected

Definition at line 42 of file Delegate.cs.

43 {
44 if (target == null)
45 {
46 throw new ArgumentNullException("target");
47 }
48 if (target.ContainsGenericParameters)
49 {
50 throw new ArgumentException(SR.Arg_UnboundGenParam, "target");
51 }
52 if (method == null)
53 {
54 throw new ArgumentNullException("method");
55 }
56 if (!(target is RuntimeType methodType))
57 {
58 throw new ArgumentException(SR.Argument_MustBeRuntimeType, "target");
59 }
61 }
bool BindToMethodName(object target, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] RuntimeType methodType, string method, DelegateBindingFlags flags)

References System.SR.Arg_UnboundGenParam, System.SR.Argument_MustBeRuntimeType, System.Delegate.BindToMethodName(), System.Type.ContainsGenericParameters, and System.Runtime.Serialization.Dictionary.