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

◆ PreProcessSignature()

void System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.PreProcessSignature ( )
inlineprivate

Definition at line 51 of file ComEventsMethod.cs.

52 {
54 _expectedParamsCount = parameters.Length;
55 Type[] array = null;
56 for (int i = 0; i < _expectedParamsCount; i++)
57 {
58 ParameterInfo parameterInfo = parameters[i];
59 if (parameterInfo.ParameterType.IsByRef && parameterInfo.ParameterType.HasElementType && parameterInfo.ParameterType.GetElementType().IsEnum)
60 {
61 if (array == null)
62 {
64 }
65 array[i] = parameterInfo.ParameterType.GetElementType();
66 }
67 }
68 if (array != null)
69 {
71 }
72 }
MethodInfo Method
Definition Delegate.cs:23
ParameterInfo[] GetParameters()

References System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper._cachedTargetTypes, System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper._expectedParamsCount, System.array, System.Reflection.MethodBase.GetParameters(), and System.Delegate.Method.

Referenced by System.Runtime.InteropServices.ComEventsMethod.DelegateWrapper.Invoke().