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