6 overrides of MakeGenericMethod
mscorlib (4)
system\reflection\emit\methodbuilder.cs (1)
689
public override MethodInfo
MakeGenericMethod
(params Type[] typeArguments)
system\reflection\emit\methodbuilderinstantiation.cs (1)
92
public override MethodInfo
MakeGenericMethod
(params Type[] arguments)
system\reflection\emit\xxxontypebuilderinstantiation.cs (1)
89
public override MethodInfo
MakeGenericMethod
(params Type[] typeArgs)
system\reflection\methodinfo.cs (1)
917
public override MethodInfo
MakeGenericMethod
(params Type[] methodInstantiation)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1969
public override MethodInfo
MakeGenericMethod
(params Type[] typeArguments) { return _info.MakeGenericMethod(typeArguments); }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1969
public override MethodInfo
MakeGenericMethod
(params Type[] typeArguments) { return _info.MakeGenericMethod(typeArguments); }
138 references to MakeGenericMethod
mscorlib (4)
system\reflection\memberinfoserializationholder.cs (2)
242
MethodInfo candidateMethod = methods[i].
MakeGenericMethod
(genericArguments);
277
return methodInfo.
MakeGenericMethod
(genericArguments);
system\runtime\remoting\message.cs (2)
3191
mi = mi.
MakeGenericMethod
(instArgs);
3251
MI = ((MethodInfo)MI).
MakeGenericMethod
(instArgs);
System.Activities (20)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
158
genericCompileMethod = genericCompileMethod.
MakeGenericMethod
(new Type[] { targetType });
273
genericCompileMethod = genericCompileMethod.
MakeGenericMethod
(new Type[] { targetType });
System\Activities\Expressions\ExpressionServices.cs (8)
254
MethodInfo specializedHandle = TryConvertIndexerReferenceHandle.
MakeGenericMethod
(methodCallExpressionBody.Object.Type, typeof(TResult));
776
MethodInfo specializedHandle = TryConvertBinaryExpressionHandle.
MakeGenericMethod
(leftType, rightType, typeof(TResult));
960
MethodInfo specializedHandle = TryConvertUnaryExpressionHandle.
MakeGenericMethod
(operandType, typeof(TResult));
1020
MethodInfo specializedHandle = TryConvertMemberExpressionHandle.
MakeGenericMethod
(operandType, typeof(TResult));
1083
MethodInfo specializedHandle = TryConvertReferenceMemberExpressionHandle.
MakeGenericMethod
(operandType, typeof(TResult));
1317
error = TryConvertArgumentExpressionHandle.
MakeGenericMethod
(methodCallExpression.Object.Type).Invoke(null, parameters) as string;
1349
string error = TryConvertArgumentExpressionHandle.
MakeGenericMethod
(invocationExpression.Expression.Type).Invoke(null, parameters) as string;
1472
string error = TryConvertArgumentExpressionHandle.
MakeGenericMethod
(expression.Type).Invoke(null, parameters) as string;
System\Activities\ExpressionUtilities.cs (8)
64
return Expression.Call(RuntimeContextParameter, activityContextGetValueGenericMethod.
MakeGenericMethod
(locationReference.Type), Expression.Constant(locationReference, typeof(LocationReference)));
250
MethodInfo typedMethod = createLocationFactoryGenericMethod.
MakeGenericMethod
(expression.Type);
1458
newExpression = Expression.Call(contextExpression, activityContextGetValueGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
1490
newExpression = Expression.Call(contextExpression, activityContextGetLocationGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
1518
newExpression = Expression.Call(contextExpression, activityContextGetValueGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
1550
newExpression = Expression.Call(contextExpression, activityContextGetLocationGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
1697
newExpression = Expression.Call(originalExpression.Object, activityContextGetValueGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
1720
newExpression = Expression.Call(originalExpression.Object, activityContextGetLocationGenericMethod.
MakeGenericMethod
(returnType), Expression.Constant(inlinedReference, typeof(LocationReference)));
System\Activities\Runtime\CallbackWrapper.cs (1)
171
potentialMatch = potentialMatch.
MakeGenericMethod
(genericParameter);
System\Activities\Statements\MethodResolver.cs (1)
380
return ((MethodInfo)method).
MakeGenericMethod
(genericTypeArguments);
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (4)
52
MethodInfo copy = genericCopy.
MakeGenericMethod
(new Type[] { genericType });
93
MethodInfo copy = genericRemapFlowSwitch.
MakeGenericMethod
(new Type[] { genericType });
165
MethodInfo method = genericCreateGenericFlowSwitchLink.
MakeGenericMethod
(genericType);
185
MethodInfo method = genericGetCaseName.
MakeGenericMethod
(type);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1969
public override MethodInfo MakeGenericMethod(params Type[] typeArguments) { return _info.
MakeGenericMethod
(typeArguments); }
System.Core (6)
Microsoft\Scripting\Actions\CallSite.cs (2)
282
_CachedNoMatch = (T)(object)CreateDelegateHelper(target, noMatchMethod.
MakeGenericMethod
(args));
283
return (T)(object)CreateDelegateHelper(target, method.
MakeGenericMethod
(args));
Microsoft\Scripting\Ast\MethodCallExpression.cs (1)
999
return m.
MakeGenericMethod
(typeArgs);
System\Linq\SequenceQuery.cs (3)
321
return mi.
MakeGenericMethod
(typeArgs);
333
return mi.
MakeGenericMethod
(typeArgs);
352
m = m.
MakeGenericMethod
(typeArgs);
System.Data (3)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\VisualStudio\Activities\WorkflowDesignerExtensionManager.cs (2)
126
return WorkflowDesignerExtensionManager.InternalGetExtensionMethodInfo.
MakeGenericMethod
(hostServiceType).Invoke(this, null);
131
return WorkflowDesignerExtensionManager.InternalGetExtensionsMethodInfo.
MakeGenericMethod
(hostServiceType).Invoke(this, null) as IEnumerable<object>;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1969
public override MethodInfo MakeGenericMethod(params Type[] typeArguments) { return _info.
MakeGenericMethod
(typeArguments); }
System.Data.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
212
.
MakeGenericMethod
(type.GetGenericArguments()[0]));
System.Data.Entity (34)
System\Data\Common\Internal\Materialization\Translator.cs (18)
267
MethodInfo compile = Translator_Compile.
MakeGenericMethod
(resultType);
519
MethodInfo createMethod = Translator_TypedCreateInlineDelegate.
MakeGenericMethod
(delegateReturnType);
724
MethodInfo checkedConvertMethod = Translator_CheckedConvert.
MakeGenericMethod
(input.Type, type);
1053
result = Expression.Call(Shaper_Parameter, Shaper_GetSpatialPropertyValueWithErrorHandling.
MakeGenericMethod
(propertyType),
1058
result = Expression.Call(Shaper_Parameter, Shaper_GetPropertyValueWithErrorHandling.
MakeGenericMethod
(propertyType), Expression.Constant(ordinal), Expression.Constant(propertyName), Expression.Constant(typeName));
1074
result = Expression.Call(Shaper_Parameter, Shaper_GetSpatialColumnValueWithErrorHandling.
MakeGenericMethod
(resultType), Expression.Constant(ordinal), Expression.Constant(primitiveColumnType, typeof(PrimitiveTypeKind)));
1078
result = Expression.Call(Shaper_Parameter, Shaper_GetColumnValueWithErrorHandling.
MakeGenericMethod
(resultType), Expression.Constant(ordinal));
1119
Expression result = Expression.Call(Shaper_Parameter, Shaper_SetState.
MakeGenericMethod
(value.Type), Expression.Constant(stateSlotNumber), value);
1129
Expression result = Expression.Call(Shaper_Parameter, Shaper_SetStatePassthrough.
MakeGenericMethod
(value.Type), Expression.Constant(stateSlotNumber), value);
1257
constructEntity = Expression.Call(Shaper_Parameter, Shaper_HandleIEntityWithKey.
MakeGenericMethod
(clrType),
1271
constructEntity = Expression.Call(Shaper_Parameter, Shaper_HandleEntityAppendOnly.
MakeGenericMethod
(clrType),
1279
constructEntity = Expression.Call(Shaper_Parameter, Shaper_HandleEntity.
MakeGenericMethod
(clrType),
1289
constructEntity = Expression.Call(Shaper_Parameter, Shaper_HandleEntityNoTracking.
MakeGenericMethod
(clrType),
1482
MethodInfo multipleDiscriminatorPolymorphicColumnMapHelper = Translator_MultipleDiscriminatorPolymorphicColumnMapHelper.
MakeGenericMethod
(arg.RequestedType);
1518
MethodInfo shaperDiscriminateOfT = Shaper_Discriminate.
MakeGenericMethod
(typeof(TElement));
1748
MethodInfo handleFullSpanCollectionMethod = Shaper_HandleFullSpanCollection.
MakeGenericMethod
(arg.RequestedType, elementType);
1756
MethodInfo handleRelationshipSpanMethod = Shaper_HandleRelationshipSpan.
MakeGenericMethod
(arg.RequestedType);
1762
MethodInfo handleFullSpanElementMethod = Shaper_HandleFullSpanElement.
MakeGenericMethod
(arg.RequestedType, spannedResultReader.Type);
System\Data\Metadata\Edm\ItemCollection.cs (1)
221
MethodInfo genericMi = mi.
MakeGenericMethod
(type);
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
478
MethodInfo createRelatedEndMethod = genericCreateRelatedEndMethod.
MakeGenericMethod
(sourceEntityType.ClrType, targetEntityType.ClrType);
System\Data\Objects\ELinq\InitializerFacet.cs (3)
309
return Expression.Call(UserExpressionMarker.
MakeGenericMethod
(newProjection.Type), newProjection);
411
return Expression.Call(UserExpressionMarker.
MakeGenericMethod
(newProjection.Type), newProjection);
475
MethodInfo createEntityCollectionMethod = s_createEntityCollectionMethod.
MakeGenericMethod
(elementType);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (2)
292
MethodInfo enumerableContainsMethod = containsMethod.
MakeGenericMethod
(declaringType.GetGenericArguments());
453
MethodInfo relationalOperatorPlaceholderMethod = s_relationalOperatorPlaceholderMethod.
MakeGenericMethod
(left.Type, right.Type);
System\Data\Objects\ELinq\Translator.cs (1)
388
countMethod = countMethod.
MakeGenericMethod
(sequenceElementType);
System\Data\Objects\ELinq\TypeSystem.cs (1)
37
MethodInfo getDefaultMethod = s_getDefaultMethod.
MakeGenericMethod
(type);
System\Data\Objects\Internal\EntityProxyFactory.cs (3)
467
MakeGenericMethod
(proxyType, property.PropertyType).
1175
MethodInfo getRelatedCollection = s_GetRelatedCollection.
MakeGenericMethod
(EntityUtil.GetCollectionElementType(navProperty.Value.PropertyType));
1351
MethodInfo specificGetRelatedReference = s_GetRelatedReference.
MakeGenericMethod
(baseProperty.PropertyType);
System\Data\Objects\Internal\EntityWrapperFactory.cs (1)
104
createDelegate = createDelegate.
MakeGenericMethod
(entityType);
System\Data\Objects\Internal\ObjectQueryState.cs (1)
317
createMethod = createMethod.
MakeGenericMethod
(this._elementType);
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
187
MethodInfo addToCollection = s_AddToCollectionGeneric.
MakeGenericMethod
(elementType);
247
MethodInfo removeFromCollection = s_RemoveFromCollectionGeneric.
MakeGenericMethod
(elementType);
System.Data.Linq (8)
DataContext.cs (2)
730
return (IEnumerable<TResult>)this.ExecuteMethodCall(this, ((MethodInfo)MethodInfo.GetCurrentMethod()).
MakeGenericMethod
(typeof(TResult)), query, parameters).ReturnValue;
755
return (IEnumerable)this.ExecuteMethodCall(this, _miExecuteQuery.
MakeGenericMethod
(elementType), query, parameters).ReturnValue;
SqlClient\Common\TypeSystem.cs (4)
127
return mi.
MakeGenericMethod
(typeArgs);
143
return mi.
MakeGenericMethod
(typeArgs);
153
return mi.
MakeGenericMethod
(typeArgs);
169
m = m.
MakeGenericMethod
(typeArgs);
SqlClient\Reader\ObjectReaderCompiler.cs (2)
1382
MethodInfo miGLS = mi.
MakeGenericMethod
(elemType);
1401
MethodInfo miGLS = mi.
MakeGenericMethod
(elemType);
System.Data.Services (25)
System\Data\Services\Providers\BasicExpandProvider.cs (10)
239
.
MakeGenericMethod
(query.ElementType, orderer.Body.Type)
281
.
MakeGenericMethod
(query.ElementType, orderer.Body.Type)
306
.
MakeGenericMethod
(query.ElementType)
313
.
MakeGenericMethod
(query.ElementType)
337
.
MakeGenericMethod
(typeof(TSource), typeof(TKey))
351
MethodInfo skipOrTakeMethod = (isSkip ? BasicExpandProvider.SkipMethodInfo : BasicExpandProvider.TakeMethodInfo).
MakeGenericMethod
(typeof(TSource));
1264
MethodInfo getter = DataServiceProviderMethods.GetSequenceValueMethodInfo.
MakeGenericMethod
(property.ResourceType.InstanceType);
1360
MethodInfo method = ExpandNode.WhereMethodInfoEnumerable.
MakeGenericMethod
(expressionElementType);
1368
MethodInfo method = ExpandNode.TakeMethodInfoEnumerable.
MakeGenericMethod
(expressionElementType);
1421
MethodInfo method = ExpandNode.SelectMethodInfoEnumerable.
MakeGenericMethod
(expressionElementType, this.elementType);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (3)
275
includeMethod = includeMethod.
MakeGenericMethod
(source.ElementType);
2054
return createObjectMethod.
MakeGenericMethod
(clrType).Invoke(context, null);
2353
MethodInfo genericMethod = typeof(ObjectContext).GetMethod("CreateQuery", WebUtil.PublicInstanceBindingFlags).
MakeGenericMethod
(container.ResourceType.InstanceType);
System\Data\Services\RequestQueryProcessor.cs (4)
766
MethodInfo mi = countQueryResultMethodInfo.
MakeGenericMethod
(this.query.ElementType);
1000
MethodInfo mi = countQueryResultMethodInfo.
MakeGenericMethod
(this.query.ElementType);
1291
.
MakeGenericMethod
(this.query.ElementType)
1301
.
MakeGenericMethod
(this.query.ElementType)
System\Data\Services\RequestUriProcessor.cs (8)
414
method = method.
MakeGenericMethod
(query.ElementType, projectedType);
427
MethodInfo whereMethod = InvokeWhereMethodInfo.
MakeGenericMethod
(query.ElementType);
1121
method = method.
MakeGenericMethod
(query.ElementType, property.Type);
1146
method = method.
MakeGenericMethod
(query.ElementType, enumerableElement);
1165
method = method.
MakeGenericMethod
(query.ElementType, typeof(object));
1185
method = method.
MakeGenericMethod
(query.ElementType, property.Type);
1201
MethodInfo getter = DataServiceProviderMethods.GetSequenceValueMethodInfo.
MakeGenericMethod
(enumerableElement);
1206
method = method.
MakeGenericMethod
(query.ElementType, enumerableElement);
System.Data.Services.Client (5)
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
82
return mi.
MakeGenericMethod
(expression.Type).Invoke(this, new object[] { expression });
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (1)
535
MethodInfo relationalOperatorPlaceholderMethod = s_relationalOperatorPlaceholderMethod.
MakeGenericMethod
(left.Type, right.Type);
System\Data\Services\Client\Binding\BindingGraph.cs (1)
106
.
MakeGenericMethod
(entityType)
System\Data\Services\Client\Binding\BindingObserver.cs (1)
206
.
MakeGenericMethod
(bpi.PropertyInfo.CollectionType)
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
422
method = method.
MakeGenericMethod
(typeArguments);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
125
System.Reflection.MethodInfo getDefaultMethod = s_getDefaultMethod.
MakeGenericMethod
(type);
System.Runtime.Serialization (14)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
727
MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.
MakeGenericMethod
(itemType);
746
MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.
MakeGenericMethod
(itemType);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
392
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.
MakeGenericMethod
(collectionContract.ItemType);
395
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.
MakeGenericMethod
(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
757
ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.
MakeGenericMethod
(innerType));
759
ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.
MakeGenericMethod
(innerType));
768
ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.
MakeGenericMethod
(memberType));
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
678
MethodInfo ensureArraySizeMethod = XmlFormatGeneratorStatics.EnsureArraySizeMethod.
MakeGenericMethod
(itemType);
697
MethodInfo trimArraySizeMethod = XmlFormatGeneratorStatics.TrimArraySizeMethod.
MakeGenericMethod
(itemType);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
428
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.
MakeGenericMethod
(collectionContract.ItemType);
431
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.
MakeGenericMethod
(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
735
ilg.Call(XmlFormatGeneratorStatics.GetHasValueMethod.
MakeGenericMethod
(innerType));
737
ilg.Call(XmlFormatGeneratorStatics.GetNullableValueMethod.
MakeGenericMethod
(innerType));
746
ilg.Call(XmlFormatGeneratorStatics.GetDefaultValueMethod.
MakeGenericMethod
(memberType));
System.ServiceModel (2)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
229
MethodInfo methodInfo = createGenericTaskMI.
MakeGenericMethod
(taskResultType);
System\ServiceModel\Dispatcher\TaskExtensions.cs (1)
40
return TaskExtensions.TaskAsAsyncResultMethodInfo.
MakeGenericMethod
(genericArgument);
System.Web (3)
UI\WebControls\ModelDataSourceView.cs (3)
464
MethodInfo countHelperMethod = typeof(QueryableHelpers).GetMethod("CountHelper").
MakeGenericMethod
(modelType);
468
MethodInfo isOrderingMethodFoundMethod = typeof(QueryableHelpers).GetMethod("IsOrderingMethodFound").
MakeGenericMethod
(modelType);
484
MethodInfo sortPageHelperMethod = typeof(QueryableHelpers).GetMethod("SortandPageHelper").
MakeGenericMethod
(modelType);
System.Web.DynamicData (1)
DynamicData\ModelProviders\EFTableProvider.cs (1)
23
CreateQueryMethod = genericMethod.
MakeGenericMethod
(EntityType);
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceView.cs (2)
233
return (IEnumerable)_executeSelectMethod.
MakeGenericMethod
(EntityClrType).Invoke(this, new object[] { arguments, createDelegate });
324
return (IEnumerable)_continueSelectMethod.
MakeGenericMethod
(elementType).Invoke(this, new object[] { arguments, newQueryBuilder, queryReturned, wasQueryModified });
System.Web.Extensions (2)
UI\WebControls\Expressions\OfTypeExpression.cs (1)
75
return typeof(Queryable).GetMethod("OfType").
MakeGenericMethod
(new Type[] { type });
UI\WebControls\QueryableDataSourceHelper.cs (1)
66
MethodInfo toListMethod = typeof(Enumerable).GetMethod("ToList").
MakeGenericMethod
(dataObjectType);
System.Workflow.Runtime (2)
DebugEngine\DebugController.cs (1)
1112
MethodInfo boundGetInvocationListMethod = getInvocationListMethod.
MakeGenericMethod
(new Type[] { dependencyEvent.PropertyType });
System\Activities\Statements\InteropEnvironment.cs (1)
161
MethodInfo genericMethodInfo = getServiceMethod.
MakeGenericMethod
(serviceType);