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

◆ Delegate() [1/2]

System.Delegate.Delegate ( object target,
string method )
inlineprotected

Definition at line 26 of file Delegate.cs.

27 {
28 if (target == null)
29 {
30 throw new ArgumentNullException("target");
31 }
32 if (method == null)
33 {
34 throw new ArgumentNullException("method");
35 }
36 if (!BindToMethodName(target, (RuntimeType)target.GetType(), method, (DelegateBindingFlags)10))
37 {
38 throw new ArgumentException(SR.Arg_DlgtTargMeth);
39 }
40 }
bool BindToMethodName(object target, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] RuntimeType methodType, string method, DelegateBindingFlags flags)

References System.SR.Arg_DlgtTargMeth, System.Delegate.BindToMethodName(), and System.Runtime.Serialization.Dictionary.