1 write to GenericMethodDefinition
Microsoft.ML.Core (1)
Utilities\FuncMethodInfo`3.cs (1)
20
GenericMethodDefinition
= methodInfo.GetGenericMethodDefinition();
16 references to GenericMethodDefinition
Microsoft.ML.Core (16)
Utilities\FuncInstanceMethodInfo1`4.cs (2)
41
Contracts.CheckParam(!
GenericMethodDefinition
.IsStatic, nameof(methodInfo), "Should be an instance method");
42
Contracts.CheckParam(
GenericMethodDefinition
.DeclaringType == typeof(TTarget), nameof(methodInfo), _targetTypeCheckMessage);
Utilities\FuncInstanceMethodInfo2`4.cs (2)
41
Contracts.CheckParam(!
GenericMethodDefinition
.IsStatic, nameof(methodInfo), "Should be an instance method");
42
Contracts.CheckParam(
GenericMethodDefinition
.DeclaringType == typeof(TTarget), nameof(methodInfo), _targetTypeCheckMessage);
Utilities\FuncInstanceMethodInfo3`4.cs (2)
41
Contracts.CheckParam(!
GenericMethodDefinition
.IsStatic, nameof(methodInfo), "Should be an instance method");
42
Contracts.CheckParam(
GenericMethodDefinition
.DeclaringType == typeof(TTarget), nameof(methodInfo), _targetTypeCheckMessage);
Utilities\FuncMethodInfo`3.cs (1)
21
Contracts.CheckParam(typeof(TResult).IsAssignableFrom(
GenericMethodDefinition
.ReturnType), nameof(methodInfo), "Cannot be generic on return type");
Utilities\FuncMethodInfo1`3.cs (2)
35
Contracts.CheckParam(
GenericMethodDefinition
.GetGenericArguments().Length == 1, nameof(methodInfo),
45
GenericMethodDefinition
);
Utilities\FuncMethodInfo2`3.cs (2)
35
Contracts.CheckParam(
GenericMethodDefinition
.GetGenericArguments().Length == 2, nameof(methodInfo),
45
GenericMethodDefinition
);
Utilities\FuncMethodInfo3`3.cs (2)
35
Contracts.CheckParam(
GenericMethodDefinition
.GetGenericArguments().Length == 3, nameof(methodInfo),
45
GenericMethodDefinition
);
Utilities\FuncStaticMethodInfo1`3.cs (1)
31
Contracts.CheckParam(
GenericMethodDefinition
.IsStatic, nameof(function), "Should be a static method");
Utilities\FuncStaticMethodInfo2`3.cs (1)
31
Contracts.CheckParam(
GenericMethodDefinition
.IsStatic, nameof(function), "Should be a static method");
Utilities\FuncStaticMethodInfo3`3.cs (1)
31
Contracts.CheckParam(
GenericMethodDefinition
.IsStatic, nameof(function), "Should be a static method");