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

◆ Invoke()

object System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.Invoke ( object[] args)
inline

Definition at line 26 of file ComEventsMethod.cs.

27 {
28 if ((object)Delegate == null)
29 {
30 return null;
31 }
32 if (!_once)
33 {
35 _once = true;
36 }
37 if (_cachedTargetTypes != null && _expectedParamsCount == args.Length)
38 {
39 for (int i = 0; i < _expectedParamsCount; i++)
40 {
42 if ((object)type != null)
43 {
44 args[i] = Enum.ToObject(type, args[i]);
45 }
46 }
47 }
48 return Delegate.DynamicInvoke((!WrapArgs) ? args : new object[1] { args });
49 }
object? DynamicInvoke(params object?[]? args)
Definition Delegate.cs:453

References System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper._cachedTargetTypes, System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper._expectedParamsCount, System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper._once, System.Delegate.DynamicInvoke(), System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.PreProcessSignature(), System.Enum.ToObject(), System.type, and System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.WrapArgs.