MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetParameterTypes

Method GetParameterTypes

Source/Engine/Utilities/Utils.cs:1028–1041  ·  view source on GitHub ↗

Gets the array of method parameter types. The method to get it's parameters. Method parameters array.

(this MethodBase method)

Source from the content-addressed store, hash-verified

1026 /// <param name="method">The method to get it's parameters.</param>
1027 /// <returns>Method parameters array.</returns>
1028 public static Type[] GetParameterTypes(this MethodBase method)
1029 {
1030 Type[] parameterTypes;
1031 var parameters = method.GetParameters();
1032 if (parameters.Length != 0)
1033 {
1034 parameterTypes = new Type[parameters.Length];
1035 for (int i = 0; i < parameters.Length; i++)
1036 parameterTypes[i] = parameters[i].ParameterType;
1037 }
1038 else
1039 parameterTypes = Array.Empty<Type>();
1040 return parameterTypes;
1041 }
1042
1043 /// <summary>
1044 /// A category of number values used for formatting and input fields.

Callers 15

MethodHolderMethod · 0.80
ThunkContextMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80
CreateDelegateMethod · 0.80

Calls 1

GetParametersMethod · 0.45

Tested by

no test coverage detected