8 overrides of MakeGenericMethod
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
89public override MethodInfo MakeGenericMethod(params Type[] arguments)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodOnTypeBuilderInstantiation.cs (1)
106public override MethodInfo MakeGenericMethod(params Type[] typeArgs)
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
512public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
397public override MethodInfo MakeGenericMethod(params Type[] methodInstantiation)
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
164public override MethodInfo MakeGenericMethod(params Type[] typeArguments)
System\Reflection\Context\Virtual\VirtualMethodBase.cs (1)
92public sealed override MethodInfo MakeGenericMethod(params Type[] typeArguments)
System.Reflection.Emit (1)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
89public override MethodInfo MakeGenericMethod(params Type[] arguments)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
111public abstract override MethodInfo MakeGenericMethod(params Type[] typeArguments);
245 references to MakeGenericMethod
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (1)
144.MakeGenericMethod(declaringType) // This is validated in the earlier call chain to be a reference type.
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
140.MakeGenericMethod(declaringType) // This is validated in the earlier call chain to be a reference type.
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
140.MakeGenericMethod(declaringType) // This is validated in the earlier call chain to be a reference type.
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.AOT.cs (1)
146.MakeGenericMethod(declaringType) // This is validated in the earlier call chain to be a reference type.
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (1)
190findMethod = findMethod.MakeGenericMethod(new Type[] { xmlSerializerOperationBehaviorType });
dotnet-svcutil-lib (7)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
580MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.MakeGenericMethod(itemType); 599MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
348incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 351incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 644_ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.MakeGenericMethod(innerType)); 646_ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.MakeGenericMethod(innerType)); 655_ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.MakeGenericMethod(memberType));
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
344 /// <see cref="System.Reflection.MethodInfo.MakeGenericMethod(System.Type[])"/>
Microsoft.AspNetCore.App.Analyzers.Test (2)
RouteEmbeddedLanguage\Infrastructure\ExportProviderExtensions.cs (2)
44var parameterizedMethod = methodInfo.MakeGenericMethod(contractType, metadataType); 54var parameterizedMethod = methodInfo.MakeGenericMethod(contractType);
Microsoft.AspNetCore.Components (6)
BindConverter.cs (4)
1790formatter = (Delegate)method.MakeGenericMethod(elementType).Invoke(null, null)!; 1985parser = method.MakeGenericMethod(typeof(T)).CreateDelegate(typeof(BindParser<T>), target: null); 1991parser = method.MakeGenericMethod(innerType).CreateDelegate(typeof(BindParser<T>), target: null); 1997parser = (Delegate)method.MakeGenericMethod(elementType).Invoke(null, null)!;
Reflection\PropertyGetter.cs (1)
37CallPropertyGetterOpenGenericMethod.MakeGenericMethod(targetType, property.PropertyType);
Reflection\PropertySetter.cs (1)
37CallPropertySetterOpenGenericMethod.MakeGenericMethod(targetType, property.PropertyType);
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostBuilder.cs (2)
295.MakeGenericMethod(containerType) 300.MakeGenericMethod(containerType)
Microsoft.AspNetCore.Http.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
Validation\RuntimeValidatableParameterInfoResolverTests.cs (2)
157.MakeGenericMethod(parameterType) 165.MakeGenericMethod(parameterType)
Microsoft.AspNetCore.Http.Extensions (26)
RequestDelegateFactory.cs (17)
66private static readonly MethodInfo ArrayEmptyOfObjectMethod = typeof(Array).GetMethod(nameof(Array.Empty), BindingFlags.Public | BindingFlags.Static)!.MakeGenericMethod(new Type[] { typeof(object) }); 537return Expression.Call(ValueTaskOfTToValueTaskOfObjectMethod.MakeGenericMethod(typeArg), methodCall); 543return Expression.Call(TaskOfTToValueTaskOfObjectMethod.MakeGenericMethod(typeArg), methodCall); 916return Expression.Call(GetRequiredServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr); 1119ExecuteTaskResultOfTMethod.MakeGenericMethod(typeArg), 1146ExecuteTaskOfTFastMethod.MakeGenericMethod(typeArg), 1153ExecuteTaskOfTMethod.MakeGenericMethod(typeArg), 1167ExecuteValueResultTaskOfTMethod.MakeGenericMethod(typeArg), 1194ExecuteValueTaskOfTFastMethod.MakeGenericMethod(typeArg), 1201ExecuteValueTaskOfTMethod.MakeGenericMethod(typeArg), 1237JsonResultWriteResponseOfTFastAsyncMethod.MakeGenericMethod(returnType), 1245JsonResultWriteResponseOfTAsyncMethod.MakeGenericMethod(returnType), 1640return Expression.Call(GetServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr); 1642return Expression.Call(GetRequiredServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr); 1651return Expression.Call(GetKeyedServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr, Expression.Convert( 1655return Expression.Call(GetRequiredKeyedServiceMethod.MakeGenericMethod(parameter.ParameterType), RequestServicesExpr, Expression.Convert( 2161FormDataMapperMapMethod.MakeGenericMethod(parameter.ParameterType),
src\Shared\EndpointMetadataPopulator.cs (3)
35PopulateMetadataForParameterMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 44PopulateMetadataForEndpointMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 61PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
86.MakeGenericMethod(awaiterResultType); 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\ParameterBindingMethodCache.cs (4)
98methodInfo = _enumTryParseMethod.MakeGenericMethod(type); 258return Expression.Call(ConvertValueTaskMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 279return Expression.Call(ConvertValueTaskOfNullableResultMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 417return BindAsyncMethod.MakeGenericMethod(type);
Microsoft.AspNetCore.Http.Results (1)
ResultsOfTHelper.cs (1)
55PopulateMetadataMethod.MakeGenericMethod(typeof(TTarget)).Invoke(null, parameters);
Microsoft.AspNetCore.Mvc.Abstractions (4)
src\Shared\ParameterBindingMethodCache.cs (4)
98methodInfo = _enumTryParseMethod.MakeGenericMethod(type); 258return Expression.Call(ConvertValueTaskMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 279return Expression.Call(ConvertValueTaskOfNullableResultMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 417return BindAsyncMethod.MakeGenericMethod(type);
Microsoft.AspNetCore.Mvc.Core (11)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
374EndpointMetadataPopulator.PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
Infrastructure\AsyncEnumerableReader.cs (1)
68.MakeGenericMethod(enumeratedObjectType)
ModelBinding\PropertyValueSetter.cs (1)
52var propertyAddRange = CallPropertyAddRangeOpenGenericMethod.MakeGenericMethod(
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
71var getEnumeratorMethod = _getEnumerator.MakeGenericMethod(type);
src\Shared\EndpointMetadataPopulator.cs (3)
35PopulateMetadataForParameterMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 44PopulateMetadataForEndpointMethod.MakeGenericMethod(parameter.ParameterType).Invoke(null, invokeArgs); 61PopulateMetadataForEndpointMethod.MakeGenericMethod(returnType).Invoke(null, invokeArgs);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
86.MakeGenericMethod(awaiterResultType); 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
BsonTempDataSerializer.cs (2)
70.MakeGenericMethod(type) 97.MakeGenericMethod(type)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
68.MakeGenericMethod(enumeratedObjectType)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageCreateTagHelperTest.cs (1)
87return typeof(Enumerable).GetMethod("Empty").MakeGenericMethod(enumerableType).Invoke(null, null);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\ExecutorFactory.cs (1)
119ConvertMethod.MakeGenericMethod(method.ReturnType.GenericTypeArguments),
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
998var methodInfo = ConvertEnumFromStringMethod.MakeGenericMethod(innerType);
Microsoft.AspNetCore.OpenApi (6)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
86.MakeGenericMethod(awaiterResultType); 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\ParameterBindingMethodCache.cs (4)
98methodInfo = _enumTryParseMethod.MakeGenericMethod(type); 258return Expression.Call(ConvertValueTaskMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 279return Expression.Call(ConvertValueTaskOfNullableResultMethod.MakeGenericMethod(nonNullableParameterType), typedCall); 417return BindAsyncMethod.MakeGenericMethod(type);
Microsoft.AspNetCore.Routing (7)
Matching\ILEmitTrieFactory.cs (5)
668?.MakeGenericMethod(typeof(byte)); 682?.MakeGenericMethod(typeof(char), typeof(byte)); 707?.MakeGenericMethod(typeof(char)); 720.MakeGenericMethod(typeof(ulong)); 732.MakeGenericMethod(typeof(ushort));
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.Routing.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
86.MakeGenericMethod(awaiterResultType); 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\PropertyHelper\PropertyHelper.cs (2)
254var wrapperDelegateMethod = openGenericWrapperMethod.MakeGenericMethod(typeInput, typeOutput); 297CallPropertySetterOpenGenericMethod.MakeGenericMethod(typeInput, parameterType);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
888.MakeGenericMethod(genericTypes)
Microsoft.AspNetCore.SignalR.Core (6)
Internal\HubMethodDescriptor.cs (2)
237var genericMethodInfo = adapterMethodInfo.MakeGenericMethod(streamReturnType); 273var genericAdapterMethodInfo = adapterMethodInfo.MakeGenericMethod(streamReturnType);
Internal\TypedClientBuilder.cs (1)
135.MakeGenericMethod(returnType.GenericTypeArguments);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (2)
86.MakeGenericMethod(awaiterResultType); 165.MakeGenericMethod(type.GetGenericArguments());
StreamTracker.cs (1)
37var newConverter = (IStreamConverter)_buildConverterMethod.MakeGenericMethod(itemType).Invoke(null, _streamConverterArgs)!;
Microsoft.CodeAnalysis.EditorFeatures (1)
Lightup\LightupHelpers.cs (1)
268method = method.MakeGenericMethod(genericArgumentType);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Converters\SumConverter.cs (1)
162jsonSerializerDeserializeMethod.MakeGenericMethod(type),
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (1)
115var method = s_processQueueCoreAsync.MakeGenericMethod(requestType, responseType);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\ImmutableSegmentedListTest.cs (1)
802var createMethod = typeof(ImmutableSegmentedList).GetMethods().Where(m => m.Name == "Create" && m.GetParameters().Length == 0).Single().MakeGenericMethod(dummType!.AsType());
Collections\SegmentedArrayHelperTests.cs (4)
82var getSegmentSizeMethod = typeof(SegmentedArrayHelper).GetMethod(nameof(SegmentedArrayHelper.GetSegmentSize), BindingFlags.Static | BindingFlags.NonPublic).MakeGenericMethod(type); 90var getSegmentShiftMethod = typeof(SegmentedArrayHelper).GetMethod(nameof(SegmentedArrayHelper.GetSegmentShift), BindingFlags.Static | BindingFlags.NonPublic).MakeGenericMethod(type); 99var getOffsetMaskMethod = typeof(SegmentedArrayHelper).GetMethod(nameof(SegmentedArrayHelper.GetOffsetMask), BindingFlags.Static | BindingFlags.NonPublic).MakeGenericMethod(type); 106var unsafeSizeOfMethod = typeof(Unsafe).GetMethod(nameof(Unsafe.SizeOf)).MakeGenericMethod(type);
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
RequestExecutionQueue.cs (1)
115var method = s_processQueueCoreAsync.MakeGenericMethod(requestType, responseType);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (1)
86return m.MakeGenericMethod(typeArgs);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
HelperFactory.cs (3)
214typeof(Enumerable).GetMethod("Skip").MakeGenericMethod(member); 217typeof(Enumerable).GetMethod("ToArray").MakeGenericMethod(member); 225.MakeGenericMethod(input, output);
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\XunitParallelTheoryTestCaseRunner.cs (1)
101methodToRun = methodToRun.MakeGenericMethod(resolvedTypes.Select(t => ((IReflectionTypeInfo)t).Type).ToArray());
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceLookupHelpers.cs (1)
41ArrayEmptyMethodInfo.MakeGenericMethod(itemType);
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
374taskConverterMethodInfo.MakeGenericMethod(t).CreateDelegate<Func<object, Task>>(), _taskConverterMethodInfo);
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
76var getGenericGetGetterMethod = getGetGetterMethod.MakeGenericMethod(featureColumns[i].Type.RawType);
Microsoft.ML.Core (7)
Utilities\FuncMethodInfo1`1.cs (1)
42(typeArg, methodInfo) => methodInfo.MakeGenericMethod(typeArg),
Utilities\FuncMethodInfo1`2.cs (1)
43(typeArg, methodInfo) => methodInfo.MakeGenericMethod(typeArg),
Utilities\FuncMethodInfo1`3.cs (1)
44(typeArg, methodInfo) => methodInfo.MakeGenericMethod(typeArg),
Utilities\FuncMethodInfo2`3.cs (1)
44(args, methodInfo) => methodInfo.MakeGenericMethod(args.Item1, args.Item2),
Utilities\FuncMethodInfo3`2.cs (1)
43(args, methodInfo) => methodInfo.MakeGenericMethod(args.Item1, args.Item2, args.Item3),
Utilities\FuncMethodInfo3`3.cs (1)
44(args, methodInfo) => methodInfo.MakeGenericMethod(args.Item1, args.Item2, args.Item3),
Utilities\Utils.cs (1)
1192meth = meth.GetGenericMethodDefinition().MakeGenericMethod(genArg);
Microsoft.ML.Data (21)
Commands\ShowSchemaCommand.cs (2)
223var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(type.RawType); 262var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(type.ItemType.RawType);
Data\RowCursorUtils.cs (5)
65var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeDst.RawType); 86var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeof(TDst)); 164var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeDst.RawType); 184var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst)); 201var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst));
DataLoadSave\Binary\BinaryLoader.cs (1)
197var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(Type.RawType);
DataLoadSave\Binary\BinarySaver.cs (2)
289IValueCodec codec = (IValueCodec)methInfo.MakeGenericMethod(metaColumn.Type.RawType).Invoke(this, args); 754methInfo.MakeGenericMethod(col.Codec.Type.RawType).Invoke(this, args);
DataLoadSave\Transpose\TransposeLoader.cs (1)
807var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(itemType.RawType);
DataView\LambdaColumnMapper.cs (1)
76.MakeGenericMethod(typeOrig.RawType, typeof(TSrc), typeof(TDst));
DataView\LambdaFilter.cs (1)
65.MakeGenericMethod(typeOrig.RawType, typeof(TSrc));
DataView\TypedCursor.cs (1)
417MethodInfo meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(genericType);
Scorers\FeatureContributionCalculation.cs (1)
198var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType);
Transforms\KeyToValue.cs (1)
242var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(
Transforms\RangeFilter.cs (1)
337var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(filter._type.RawType);
Transforms\ValueMapping.cs (1)
810var method = del.Method.GetGenericMethodDefinition().MakeGenericMethod(keyColumn.Type.RawType, valueColumn.Type.RawType);
Utilities\ColumnCursor.cs (3)
67var meth = del.Method.GetGenericMethodDefinition().MakeGenericMethod(typeof(T), colType.RawType); 80var meth = del.Method.GetGenericMethodDefinition().MakeGenericMethod(elementType); 88var meth = del.Method.GetGenericMethodDefinition().MakeGenericMethod(elementType, colVectorType.ItemType.RawType);
Microsoft.ML.DataView (1)
Utils.cs (1)
41meth = meth.GetGenericMethodDefinition().MakeGenericMethod(genArg);
Microsoft.ML.OnnxTransformer (4)
OnnxTypeParser.cs (4)
303var accessSpecialized = accessInfo.MakeGenericMethod(type); 322var methodSpecialized = methodInfo.MakeGenericMethod(type); 348var methodSpecialized = methodInfo.MakeGenericMethod(typeof(NamedOnnxValue), elementType); 371var asDictionaryMethod = asDictionaryMethodInfo.MakeGenericMethod(keyType, valueType);
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
686var typedMeth = meth.GetGenericMethodDefinition().MakeGenericMethod(type);
Microsoft.ML.Transforms (7)
CountFeatureSelection.cs (2)
355var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(colType.RawType); 367var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(colType.ItemType.RawType);
ExpressionTransformer.cs (2)
455var meth = d.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(types); 597var meth = d.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(types);
MissingValueReplacing.cs (2)
243var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(savedVectorType.ItemType.RawType); 520var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(repValue.GetType());
MutualInformationFeatureSelection.cs (1)
556var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(labelType.RawType);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1482_item = DirectCast(_rawItem, MethodInfo).MakeGenericMethod(TypeArguments)
PresentationFramework (4)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
896typeof(IObjectReference).GetMethod("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType())
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
444get_Current_0 = global::System.Delegate.CreateDelegate(get_Current_0_Type, typeof(Vftbl).GetMethod("Do_Abi_get_Current_0", BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod(Marshaler<T>.AbiType)),
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
234GetAt_0 = global::System.Delegate.CreateDelegate(GetAt_0_Type, typeof(Vftbl).GetMethod("Do_Abi_GetAt_0", BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod(Marshaler<T>.AbiType)), 236IndexOf_2 = global::System.Delegate.CreateDelegate(IndexOf_2_Type, typeof(Vftbl).GetMethod("Do_Abi_IndexOf_2", BindingFlags.NonPublic | BindingFlags.Static).MakeGenericMethod(Marshaler<T>.AbiType)),
System.ComponentModel.Composition (5)
System\ComponentModel\Composition\ExportServices.cs (3)
52genericMethod = _createStronglyTypedLazyOfTM.MakeGenericMethod(exportType ?? ExportServices.DefaultExportedValueType, metadataViewType); 56genericMethod = _createStronglyTypedLazyOfT.MakeGenericMethod(exportType ?? ExportServices.DefaultExportedValueType); 66MethodInfo genericMethod = _createSemiStronglyTypedLazy.MakeGenericMethod(
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (2)
28genericMethod = _createStronglyTypedExportFactoryOfT.MakeGenericMethod(exportType); 32genericMethod = _createStronglyTypedExportFactoryOfTM.MakeGenericMethod(exportType, metadataViewType);
System.Composition.Hosting (6)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
21var gld = s_getExportFactoryDefinitionsMethod.MakeGenericMethod(exportKey.ContractType.GenericTypeArguments[0]);
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
24var gld = s_getLazyDefinitionsMethod.MakeGenericMethod(ga[0], ga[1]);
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
34var gimd = s_getImportManyDefinitionMethod.MakeGenericMethod(elementType);
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
22var gld = s_getLazyDefinitionsMethod.MakeGenericMethod(exportKey.ContractType.GenericTypeArguments[0]);
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
23var gld = s_getLazyDefinitionsMethod.MakeGenericMethod(ga[0], ga[1]);
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
59var m = s_getMetadataValueMethod.MakeGenericMethod(prop.PropertyType);
System.Data.Common (1)
System\Data\DataRowExtensions.cs (1)
166.MakeGenericMethod(Nullable.GetUnderlyingType(typeof(T))!)
System.Linq.Expressions (4)
System\Dynamic\Utils\DelegateHelpers.cs (1)
174uninstantiatedMethod.MakeGenericMethod(thunkTypeArgs) :
System\Linq\Expressions\MethodCallExpression.cs (1)
1383return m.MakeGenericMethod(typeArgs);
System\Runtime\CompilerServices\CallSite.cs (2)
325s_cachedNoMatch = (T)(object)noMatchMethod!.MakeGenericMethod(args).CreateDelegate(target); 326return (T)(object)method.MakeGenericMethod(args).CreateDelegate(target);
System.Linq.Queryable (3)
System\Linq\EnumerableRewriter.cs (3)
239MethodInfo ApplyTypeArgs(MethodInfo methodInfo) => typeArgs == null ? methodInfo : methodInfo.MakeGenericMethod(typeArgs); 307return (typeArgs != null) ? mi.MakeGenericMethod(typeArgs) : mi; 336method.MakeGenericMethod(genericTypes).GetParameters();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
109?.MakeGenericMethod(binaryFormatterType)
System.Private.DataContractSerialization (21)
System\Runtime\Serialization\AccessorBuilder.cs (3)
36Func<object> make = s_make.MakeGenericMethod(type).CreateDelegate<Func<object>>(); 72var createGetterGeneric = s_createGetterInternal.MakeGenericMethod(declaringType, propertyType).CreateDelegate<Func<PropertyInfo, Getter>>(); 129var createSetterGeneric = s_createSetterInternal.MakeGenericMethod(propInfo.DeclaringType!, propInfo.PropertyType).CreateDelegate<Func<PropertyInfo, Setter>>();
System\Runtime\Serialization\CollectionDataContract.cs (3)
787static MethodInfo GetBuildIncrementCollectionCountGenericDelegate(Type type) => BuildIncrementCollectionCountDelegateMethod.MakeGenericMethod(type); 793private static MethodInfo GetBuildIncrementCollectionCountGenericDelegate(Type type) => BuildIncrementCollectionCountDelegateMethod.MakeGenericMethod(type); 836static MethodInfo GetBuildCreateGenericDictionaryEnumeratorGenericMethod(Type[] keyValueTypes) => GetBuildCreateGenericDictionaryEnumeratorMethodInfo.MakeGenericMethod(keyValueTypes[0], keyValueTypes[1]);
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
686MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.MakeGenericMethod(itemType); 705MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
351incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 354incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\ReflectionReader.cs (3)
154MethodInfo getCollectionSetItemDelegateMethod = CollectionSetItemDelegateMethod.MakeGenericMethod(itemType); 186MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType); 621static MethodInfo MakeGenericMethod(MethodInfo method, Type keyType, Type valueType) => method.MakeGenericMethod(keyType, valueType);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
776return GetDefaultValueMethod.MakeGenericMethod(type).Invoke(null, Array.Empty<object>());
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
716MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.MakeGenericMethod(itemType); 735MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.MakeGenericMethod(itemType);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
430incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(collectionContract.ItemType); 433incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 742_ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.MakeGenericMethod(innerType)); 744_ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.MakeGenericMethod(innerType)); 753_ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.MakeGenericMethod(memberType));
System.Private.Xml (1)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
647MethodInfo getSetMemberValueDelegateWithTypeMi = getSetMemberValueDelegateWithTypeGenericMi.MakeGenericMethod(o.GetType(), memberType);
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingMethodInfo.cs (1)
166return UnderlyingMethod.MakeGenericMethod(typeArguments);
System.Text.Json (5)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactoryHelpers.cs (2)
35return method.MakeGenericMethod(elementType); 59return method.MakeGenericMethod(keyType, valueType);
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (3)
187return CreateDelegate<Func<IEnumerable<TElement>, TFSharpList>>(EnsureMemberExists(_fsharpListCtor, "Microsoft.FSharp.Collections.ListModule.OfSeq<T>(IEnumerable<T> source)").MakeGenericMethod(typeof(TElement))); 195return CreateDelegate<Func<IEnumerable<TElement>, TFSharpSet>>(EnsureMemberExists(_fsharpSetCtor, "Microsoft.FSharp.Collections.SetModule.OfSeq<T>(IEnumerable<T> source)").MakeGenericMethod(typeof(TElement))); 203return CreateDelegate<Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap>>(EnsureMemberExists(_fsharpMapCtor, "Microsoft.FSharp.Collections.MapModule.OfSeq<TKey, TValue>(IEnumerable<Tuple<TKey, TValue>> source)").MakeGenericMethod(typeof(TKey), typeof(TValue)));
System.Text.RegularExpressions (29)
System\Text\RegularExpressions\RegexCompiler.cs (29)
68private static MethodInfo SpanIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 69private static MethodInfo SpanIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 71private static MethodInfo SpanIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 72private static MethodInfo SpanIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 73private static MethodInfo SpanIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 74private static MethodInfo SpanIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 76private static MethodInfo SpanIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 77private static MethodInfo SpanIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 78private static MethodInfo SpanIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 79private static MethodInfo SpanIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 80private static MethodInfo SpanIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 81private static MethodInfo SpanIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 82private static MethodInfo SpanIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("IndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 83private static MethodInfo SpanLastIndexOfCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 84private static MethodInfo SpanLastIndexOfAnyCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 85private static MethodInfo SpanLastIndexOfAnyCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 86private static MethodInfo SpanLastIndexOfAnySpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 87private static MethodInfo SpanLastIndexOfAnySearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAny", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 88private static MethodInfo SpanLastIndexOfSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOf", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 89private static MethodInfo SpanLastIndexOfAnyExceptCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 90private static MethodInfo SpanLastIndexOfAnyExceptCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 91private static MethodInfo SpanLastIndexOfAnyExceptCharCharCharMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 92private static MethodInfo SpanLastIndexOfAnyExceptSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 93private static MethodInfo SpanLastIndexOfAnyExceptSearchValuesMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExcept", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(SearchValues<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 94private static MethodInfo SpanLastIndexOfAnyInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 95private static MethodInfo SpanLastIndexOfAnyExceptInRangeMethod => field ??= typeof(MemoryExtensions).GetMethod("LastIndexOfAnyExceptInRange", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), Type.MakeGenericMethodParameter(0), Type.MakeGenericMethodParameter(0)])!.MakeGenericMethod(typeof(char)); 98private static MethodInfo SpanStartsWithSpanMethod => field ??= typeof(MemoryExtensions).GetMethod("StartsWith", [typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0)), typeof(ReadOnlySpan<>).MakeGenericType(Type.MakeGenericMethodParameter(0))])!.MakeGenericMethod(typeof(char)); 102private static MethodInfo ArrayResizeMethod => field ??= typeof(Array).GetMethod("Resize")!.MakeGenericMethod(typeof(int)); 104private static MethodInfo MemoryMarshalGetArrayDataReferenceSearchValuesMethod => field ??= typeof(MemoryMarshal).GetMethod("GetArrayDataReference", [Type.MakeGenericMethodParameter(0).MakeArrayType()])!.MakeGenericMethod(typeof(SearchValues<char>))!;
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
399var method = openMethod.MakeGenericMethod(new Type[] { keyType, itemType });