1 write to GenericMethodDefinition
Microsoft.ML.Core (1)
Utilities\FuncMethodInfo`1.cs (1)
19
GenericMethodDefinition
= methodInfo.GetGenericMethodDefinition();
6 references to GenericMethodDefinition
Microsoft.ML.Core (6)
Utilities\FuncInstanceMethodInfo1`2.cs (2)
39
Contracts.CheckParam(!
GenericMethodDefinition
.IsStatic, nameof(methodInfo), "Should be an instance method");
40
Contracts.CheckParam(
GenericMethodDefinition
.DeclaringType == typeof(TTarget), nameof(methodInfo), _targetTypeCheckMessage);
Utilities\FuncMethodInfo`1.cs (1)
20
Contracts.CheckParam(typeof(TResult).IsAssignableFrom(
GenericMethodDefinition
.ReturnType), nameof(methodInfo), "Cannot be generic on return type");
Utilities\FuncMethodInfo1`1.cs (2)
33
Contracts.CheckParam(
GenericMethodDefinition
.GetGenericArguments().Length == 1, nameof(methodInfo),
43
GenericMethodDefinition
);
Utilities\FuncStaticMethodInfo1`1.cs (1)
29
Contracts.CheckParam(
GenericMethodDefinition
.IsStatic, nameof(function), "Should be a static method");