7 overrides of MakeGenericType
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
197public override Type MakeGenericType(params Type[] typeArguments) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
system\reflection\emit\typebuilder.cs (1)
1596 public override Type MakeGenericType(params Type[] typeArguments)
system\reflection\emit\typebuilderinstantiation.cs (1)
224public override Type MakeGenericType(params Type[] inst) { throw new InvalidOperationException(Environment.GetResourceString("Arg_NotGenericTypeDefinition")); }
system\rttype.cs (1)
4201public override Type MakeGenericType(Type[] instantiation)
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
558public override Type MakeGenericType(params Type[] typeArgs)
404 references to MakeGenericType
mscorlib (19)
system\collections\generic\comparer.cs (1)
66if (typeof(IComparable<>).MakeGenericType(u).IsAssignableFrom(u)) {
system\collections\generic\equalitycomparer.cs (1)
55if (typeof(IEquatable<>).MakeGenericType(u).IsAssignableFrom(u)) {
System\Diagnostics\Eventing\TraceLogging\Statics.cs (5)
569typeof(TraceLoggingTypeInfo<>).MakeGenericType(dataType), 664typeof(ArrayTypeInfo<>).MakeGenericType(elementType), 797typeof(KeyValuePairTypeInfo<,>).MakeGenericType(args[0], args[1]), 804typeof(NullableTypeInfo<>).MakeGenericType(args[0]), 813typeof(EnumerableTypeInfo<,>).MakeGenericType(dataType, elementType),
system\reflection\emit\typebuilder.cs (4)
123type = type.MakeGenericType(type.GetGenericArguments()); 144type = type.MakeGenericType(type.GetGenericArguments()); 165type = type.MakeGenericType(type.GetGenericArguments()); 1813Type inst = genericTypeDefinition.MakeGenericType(m_typeParent.GetGenericArguments());
system\reflection\emit\typebuilderinstantiation.cs (1)
146return GetGenericTypeDefinition().MakeGenericType(instSubstituted);
system\rttype.cs (3)
1118AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IList<>).MakeGenericType(arrayType), true); 1122AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyList<>).MakeGenericType(arrayType), false); 1123AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyCollection<>).MakeGenericType(arrayType), false);
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
359Type specificType = typeof(CLRIReferenceImpl<>).MakeGenericType(type); 454Type specificType = typeof(CLRIReferenceArrayImpl<>).MakeGenericType(type);
system\runtimehandles.cs (1)
64type = type.MakeGenericType(genericArgs);
system\unityserializationholder.cs (1)
254return MakeElementTypes(definition.MakeGenericType(m_instantiation));
System.Activities (29)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
197Type concreteHelperType = VisualBasicExpressionFactoryType.MakeGenericType(targetType); 329Type concreteHelperType = VisualBasicExpressionFactoryType.MakeGenericType(targetType);
System\Activities\Activity.cs (1)
1518Type concreteHelperType = DictionaryArgumentHelperType.MakeGenericType(innerType);
System\Activities\ActivityUtilities.cs (10)
375Type genericVariableReferenceType = variableReferenceGenericType.MakeGenericType(variable.Type); 417return locationGenericType.MakeGenericType(locationType); 422return activityGenericType.MakeGenericType(resultType); 434argumentReference = Activator.CreateInstance(argumentValueGenericType.MakeGenericType(argumentType), referencedArgumentName); 439argumentReference = Activator.CreateInstance(argumentReferenceGenericType.MakeGenericType(argumentType), referencedArgumentName); 448Type variableType = variableGenericType.MakeGenericType(type); 1403argumentType = ActivityUtilities.inArgumentGenericType.MakeGenericType(type); 1407argumentType = ActivityUtilities.outArgumentGenericType.MakeGenericType(type); 1411argumentType = ActivityUtilities.inOutArgumentGenericType.MakeGenericType(type); 1478return openType.MakeGenericType(type);
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (1)
168codeActivityOfTType = typeof(CodeActivity<>).MakeGenericType(activityWithResult.ResultType);
System\Activities\Debugger\DebugInfo.cs (3)
126activityType = typeof(Activity<>).MakeGenericType(typeof(Location<>).MakeGenericType(locationValueType)); 141Type locationHelperType = typeof(LocationHelper<>).MakeGenericType(locationValueType);
System\Activities\ExpressionUtilities.cs (2)
246Type funcType = genericFuncType.MakeGenericType(delegateParameterTypes); 1980typeof(Func<,>).MakeGenericType(typeof(ActivityContext), originalLambdaExpression.ReturnType),
System\Activities\XamlIntegration\ActivityBuilderXamlWriter.cs (2)
362activityXamlType = Writer.SchemaContext.GetXamlType(typeof(Activity<>).MakeGenericType(activityType)); 1188Type propertyReferenceType = typeof(PropertyReferenceExtension<>).MakeGenericType(targetProperty.Type.UnderlyingType ?? typeof(object));
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
103Type concreteHelperType = LocationHelperType.MakeGenericType(typeof(T), this.valueType);
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
78typeof(Func<,>).MakeGenericType(typeof(ActivityContext), lambdaExpression.ReturnType),
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (2)
403activityReplacementGenericType = typeof(ActivityBuilder<>).MakeGenericType(activityType); 407activityReplacementGenericType = typeof(DynamicActivity<>).MakeGenericType(activityType);
System\Activities\XamlIntegration\FuncFactory.cs (1)
75Type closedType = typeof(FuncFactory<>).MakeGenericType(returnType);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
1493Type returnType = typeof(Expression<>).MakeGenericType(typeof(Func<>).MakeGenericType(expressionDescriptor.ResultType));
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
118Type concreteHelperType = helperType.MakeGenericType(genericTypeArguments);
System.Activities.Core.Presentation (13)
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (1)
512Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { keyType, typeof(FlowNode) });
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (1)
156Type dictionaryEntryType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), underlyingArgumentType });
System\Activities\Core\Presentation\MorphHelpers.cs (5)
69Type activityActionType = typeof(ActivityAction<>).MakeGenericType(activityActionTypeArgument); 76Type variableType = typeof(DelegateInArgument<>).MakeGenericType(activityActionTypeArgument); 97Type activityFuncType = typeof(ActivityFunc<,>).MakeGenericType(activityFuncArgumentType, activityFuncResultType); 104Type argumentType = typeof(DelegateInArgument<>).MakeGenericType(activityFuncArgumentType); 113Type resultType = typeof(DelegateOutArgument<>).MakeGenericType(activityFuncResultType);
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (2)
409Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) }); 426Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) });
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (3)
333Type catchType = typeof(Catch<>).MakeGenericType(exceptionType); 336Type activityActionType = typeof(ActivityAction<>).MakeGenericType(exceptionType); 339Type argumentType = typeof(DelegateInArgument<>).MakeGenericType(exceptionType);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
438Type dictionaryEntryType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), underlyingArgumentType });
System.Activities.Presentation (27)
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108delegateArgument = Activator.CreateInstance(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument; 112delegateArgument = Activator.CreateInstance(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (1)
102return containerType.MakeGenericType(argumentTypes);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
466type = type.MakeGenericType(typeArgumentAttribute.Type);
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
125var concreteExpType = typeof(Literal<>).MakeGenericType(type);
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
79this.itemsCollectionKVPType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(genericArguments);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
448converterType = converterType.MakeGenericType(computedValue.GetType().GetGenericArguments());
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
1269this.kvpairType = typeof(KeyValuePair<,>).MakeGenericType(this.GenericArguments); 1282this.itemType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(this.GenericArguments); 1307this.propertyType = typeof(DictionaryItemsCollection<,>).MakeGenericType(this.GenericArguments);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
289result = this.EditedType.MakeGenericType(arguments);
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
1033targetType = typeof(InArgument<>).MakeGenericType(type); 1037targetType = typeof(OutArgument<>).MakeGenericType(type); 1041targetType = typeof(InOutArgument<>).MakeGenericType(type); 1230argumentType = typeof(InArgument<>).MakeGenericType(type); 1234argumentType = typeof(InOutArgument<>).MakeGenericType(type); 1238argumentType = typeof(OutArgument<>).MakeGenericType(type);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (2)
833(owner.UseLocationExpression && (owner.ExpressionType != null) && (expression.ResultType != typeof(Location<>).MakeGenericType(owner.ExpressionType)))) 836expression.GetType().FullName, typeof(Activity<>).MakeGenericType(owner.ExpressionType).FullName);
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
264result = result.MakeGenericType(arguments);
System.Activities.Presentation\System\Activities\Presentation\View\TypeKeyValue.cs (1)
161result = this.targetType.MakeGenericType(arguments);
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1338var variableOfType = typeof(Variable<>).MakeGenericType(type);
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1023targetExpressionType = typeof(VisualBasicReference<>).MakeGenericType(type); 1027targetExpressionType = typeof(VisualBasicValue<>).MakeGenericType(type);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
1004errorType = typeof(ErrorActivity<>).MakeGenericType(this.Type.GetGenericArguments()[0]);
System.Core (45)
Microsoft\Scripting\Actions\CallSite.cs (1)
113method = typeof(CallSite<>).MakeGenericType(delegateType).GetMethod("Create");
Microsoft\Scripting\Ast\BinaryExpression.cs (1)
2107return typeof(Nullable<>).MakeGenericType(left);
Microsoft\Scripting\Ast\LambdaExpression.cs (1)
268create = typeof(Expression<>).MakeGenericType(delegateType).GetMethod("Create", BindingFlags.Static | BindingFlags.NonPublic);
Microsoft\Scripting\Ast\TypeUtils.cs (1)
45return typeof(Nullable<>).MakeGenericType(type);
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
312Type boxType = typeof(StrongBox<>).MakeGenericType(v.Type);
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (2)
107_boxType = typeof(StrongBox<>).MakeGenericType(variable.Type); 151_boxType = typeof(StrongBox<>).MakeGenericType(variable.Type);
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (33)
234case 1: return typeof(Func<>).MakeGenericType(types); 235case 2: return typeof(Func<,>).MakeGenericType(types); 236case 3: return typeof(Func<,,>).MakeGenericType(types); 237case 4: return typeof(Func<,,,>).MakeGenericType(types); 238case 5: return typeof(Func<,,,,>).MakeGenericType(types); 239case 6: return typeof(Func<,,,,,>).MakeGenericType(types); 240case 7: return typeof(Func<,,,,,,>).MakeGenericType(types); 241case 8: return typeof(Func<,,,,,,,>).MakeGenericType(types); 242case 9: return typeof(Func<,,,,,,,,>).MakeGenericType(types); 243case 10: return typeof(Func<,,,,,,,,,>).MakeGenericType(types); 244case 11: return typeof(Func<,,,,,,,,,,>).MakeGenericType(types); 245case 12: return typeof(Func<,,,,,,,,,,,>).MakeGenericType(types); 246case 13: return typeof(Func<,,,,,,,,,,,,>).MakeGenericType(types); 247case 14: return typeof(Func<,,,,,,,,,,,,,>).MakeGenericType(types); 248case 15: return typeof(Func<,,,,,,,,,,,,,,>).MakeGenericType(types); 249case 16: return typeof(Func<,,,,,,,,,,,,,,,>).MakeGenericType(types); 250case 17: return typeof(Func<,,,,,,,,,,,,,,,,>).MakeGenericType(types); 268case 1: return typeof(Action<>).MakeGenericType(types); 269case 2: return typeof(Action<,>).MakeGenericType(types); 270case 3: return typeof(Action<,,>).MakeGenericType(types); 271case 4: return typeof(Action<,,,>).MakeGenericType(types); 272case 5: return typeof(Action<,,,,>).MakeGenericType(types); 273case 6: return typeof(Action<,,,,,>).MakeGenericType(types); 274case 7: return typeof(Action<,,,,,,>).MakeGenericType(types); 275case 8: return typeof(Action<,,,,,,,>).MakeGenericType(types); 276case 9: return typeof(Action<,,,,,,,,>).MakeGenericType(types); 277case 10: return typeof(Action<,,,,,,,,,>).MakeGenericType(types); 278case 11: return typeof(Action<,,,,,,,,,,>).MakeGenericType(types); 279case 12: return typeof(Action<,,,,,,,,,,,>).MakeGenericType(types); 280case 13: return typeof(Action<,,,,,,,,,,,,>).MakeGenericType(types); 281case 14: return typeof(Action<,,,,,,,,,,,,,>).MakeGenericType(types); 282case 15: return typeof(Action<,,,,,,,,,,,,,,>).MakeGenericType(types); 283case 16: return typeof(Action<,,,,,,,,,,,,,,,>).MakeGenericType(types);
System\Linq\SequenceQuery.cs (5)
21Type seqType = typeof(EnumerableQuery<>).MakeGenericType(elementType); 30Type seqType = typeof(EnumerableQuery<>).MakeGenericType(elementType); 104Type execType = typeof(EnumerableExecutor<>).MakeGenericType(expression.Type); 151Type execType = typeof(EnumerableExecutor<>).MakeGenericType(expression.Type); 282return typeof(IGrouping<,>).MakeGenericType(t.GetGenericArguments());
System.Data (29)
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (2)
409Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) }); 426Type caseType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(new Type[] { this.CaseType, typeof(Activity) });
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (2)
108delegateArgument = Activator.CreateInstance(typeof(DelegateInArgument<>).MakeGenericType(argument.Type)) as DelegateArgument; 112delegateArgument = Activator.CreateInstance(typeof(DelegateOutArgument<>).MakeGenericType(argument.Type)) as DelegateArgument;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (1)
102return containerType.MakeGenericType(argumentTypes);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1107public override Type MakeGenericType(params Type[] typeArguments) { return _baseReflectionType.MakeGenericType(typeArguments); }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
466type = type.MakeGenericType(typeArgumentAttribute.Type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (1)
125var concreteExpType = typeof(Literal<>).MakeGenericType(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
45Type newModelItemType = oldModelItemType.GetGenericTypeDefinition().MakeGenericType(value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (1)
79this.itemsCollectionKVPType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(genericArguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
448converterType = converterType.MakeGenericType(computedValue.GetType().GetGenericArguments());
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (3)
1269this.kvpairType = typeof(KeyValuePair<,>).MakeGenericType(this.GenericArguments); 1282this.itemType = typeof(ModelItemKeyValuePair<,>).MakeGenericType(this.GenericArguments); 1307this.propertyType = typeof(DictionaryItemsCollection<,>).MakeGenericType(this.GenericArguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
289result = this.EditedType.MakeGenericType(arguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
1033targetType = typeof(InArgument<>).MakeGenericType(type); 1037targetType = typeof(OutArgument<>).MakeGenericType(type); 1041targetType = typeof(InOutArgument<>).MakeGenericType(type); 1230argumentType = typeof(InArgument<>).MakeGenericType(type); 1234argumentType = typeof(InOutArgument<>).MakeGenericType(type); 1238argumentType = typeof(OutArgument<>).MakeGenericType(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (2)
833(owner.UseLocationExpression && (owner.ExpressionType != null) && (expression.ResultType != typeof(Location<>).MakeGenericType(owner.ExpressionType)))) 836expression.GetType().FullName, typeof(Activity<>).MakeGenericType(owner.ExpressionType).FullName);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
264result = result.MakeGenericType(arguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeKeyValue.cs (1)
161result = this.targetType.MakeGenericType(arguments);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (1)
1338var variableOfType = typeof(Variable<>).MakeGenericType(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1023targetExpressionType = typeof(VisualBasicReference<>).MakeGenericType(type); 1027targetExpressionType = typeof(VisualBasicValue<>).MakeGenericType(type);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
1004errorType = typeof(ErrorActivity<>).MakeGenericType(this.Type.GetGenericArguments()[0]);
System.Data.Entity (36)
System\Data\Common\EntityUtil.cs (3)
208requestedType, typeof(List<>).MakeGenericType(elementType))); 217var hashSetOfT = typeof(HashSet<>).MakeGenericType(elementType); 223var listOfT = typeof(List<>).MakeGenericType(elementType);
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
187CoordinatorFactory result = (CoordinatorFactory)Activator.CreateInstance(typeof(CoordinatorFactory<>).MakeGenericType(_elementType), new object[] {
System\Data\Common\Internal\Materialization\Shaper.cs (1)
832var type = typeof(ErrorHandlingValueReader<>).MakeGenericType(underlyingType);
System\Data\Common\Internal\Materialization\ShaperFactory.cs (1)
27ShaperFactoryCreator creator = (ShaperFactoryCreator)Activator.CreateInstance(typeof(TypedShaperFactoryCreator<>).MakeGenericType(elementType));
System\Data\Common\Internal\Materialization\Translator.cs (13)
216columnMap.Accept(translator, new TranslatorArg(typeof(IEnumerable<>).MakeGenericType(typeof(TRequestedType)))); 368result = typeof(IEnumerable<>).MakeGenericType(result); 380result = typeof(Nullable<>).MakeGenericType(result); 388result = typeof(Nullable<>).MakeGenericType(result); 767Type genericType = typeof(LightweightEntityWrapper<>).MakeGenericType(actualType); 791typeof(EntityWrapperWithRelationships<>).MakeGenericType(actualType) : 792typeof(EntityWrapperWithoutRelationships<>).MakeGenericType(actualType); 833valueType = typeof(IEnumerable<>).MakeGenericType(valueType.GetGenericArguments()); 1865MethodInfo getElementsExpression = typeof(Coordinator<>).MakeGenericType(elementType).GetMethod("GetElements", BindingFlags.NonPublic | BindingFlags.Instance); 1894Type listOfElementType = typeof(List<>).MakeGenericType(innerElementType); 1899typeof(ICollection<>).MakeGenericType(innerElementType)); 1911Type compensatingCollectionType = typeof(CompensatingCollection<>).MakeGenericType(elementType); 2026Expression result = Emit_Shaper_GetState(stateSlotNumber, typeof(Coordinator<>).MakeGenericType(elementType));
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
41typeof(DomainConstraintIdentifierService<,>).MakeGenericType(identifierType, variableType, elementType));
System\Data\Objects\CompiledQuery.cs (1)
597!resultType.IsAssignableFrom(typeof(ObjectQuery<>).MakeGenericType(elementType)));
System\Data\Objects\ELinq\InitializerFacet.cs (3)
225Type groupType = typeof(Grouping<,>).MakeGenericType(keyType, groupElementType); 245yield return typeof(IEnumerable<>).MakeGenericType(groupElementType); 511yield return typeof(IEnumerable<>).MakeGenericType(elementType);
System\Data\Objects\ELinq\TypeSystem.cs (3)
84delegateType = delegateType.MakeGenericType(typeArgs); 157return typeof(IEnumerable<>).MakeGenericType(seqType.GetElementType()); 162Type ienum = typeof(IEnumerable<>).MakeGenericType(arg);
System\Data\Objects\FieldDescriptor.cs (2)
73result = typeof(IEnumerable<>).MakeGenericType(result); 84result = typeof(Nullable<>).MakeGenericType(result);
System\Data\Objects\Internal\EntityProxyFactory.cs (2)
888Type interceptorType = typeof(Func<,,>).MakeGenericType(typeBuilder, baseProperty.PropertyType, typeof(bool)); 1352MethodInfo specificEntityReferenceSetValue = typeof(EntityReference<>).MakeGenericType(baseProperty.PropertyType).GetMethod("set_Value"); ;
System\Data\Objects\Internal\PocoPropertyAccessorStrategy.cs (2)
185Type collectionType = typeof(ICollection<>).MakeGenericType(elementType); 245Type collectionType = typeof(ICollection<>).MakeGenericType(elementType);
System\Data\Objects\ObjectViewFactory.cs (3)
120Type objectViewDataType = genericObjectViewQueryResultDataType.MakeGenericType(clrElementType); 203Type objectViewDataType = genericObjectViewEntityCollectionDataType.MakeGenericType(clrElementType, typeof(TElement)); 233Type objectViewType = genericObjectViewType.MakeGenericType(clrElementType);
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
489getViewAtMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) })); 543viewMethod.ReturnType = new CodeTypeReference(typeof(KeyValuePair<,>).MakeGenericType(new Type[] { typeof(string), typeof(string) }));
System.Data.Linq (87)
DataBindingList.cs (1)
17Type bindingType = typeof(DataBindingList<>).MakeGenericType(metaTable.RowType.Type);
DataContext.cs (3)
396Type tbType = typeof(Table<>).MakeGenericType(metaTable.RowType.Type); 1151Type qType = typeof(IQueryable<>).MakeGenericType(eType); 1155Type dqType = typeof(DataQuery<>).MakeGenericType(eType);
DataQuery.cs (2)
38Type qType = typeof(IQueryable<>).MakeGenericType(eType); 41Type dqType = typeof(DataQuery<>).MakeGenericType(eType);
DataServices.cs (1)
293typeof(DeferredSourceFactory<>).MakeGenericType(elemType),
DbConvert.cs (1)
181&& typeof(IEnumerable<>).MakeGenericType(toType.GetGenericArguments()[0]).IsAssignableFrom(fromType)
IdentityManager.cs (3)
65typeof(IdentityCache<,>).MakeGenericType(type.Type, km.KeyType), 81typeof(SingleKeyManager<,>).MakeGenericType(type.Type, mm.Type), 89typeof(MultiKeyManager<,,>).MakeGenericType(type.Type, mm.Type, km.KeyType),
Mapping\Accessors.cs (7)
39dget = mget.CreateDelegate(typeof(DGet<,>).MakeGenericType(objectType, fi.FieldType)); 55drset = mset.CreateDelegate(typeof(DRSet<,>).MakeGenericType(objectType, fi.FieldType)); 58typeof(Accessor<,>).MakeGenericType(objectType, fi.FieldType), 93Type dgetType = typeof(DGet<,>).MakeGenericType(objectType, pi.PropertyType); 103dset = Delegate.CreateDelegate(typeof(DSet<,>).MakeGenericType(objectType, pi.PropertyType), pi.GetSetMethod(true), true); 120drset = mset.CreateDelegate(typeof(DRSet<,>).MakeGenericType(objectType, pi.PropertyType)); 126typeof(Accessor<,,>).MakeGenericType(objectType, pi.PropertyType, saType),
Mapping\AttributedMetaModel.cs (9)
1283accessorValue = CreateAccessor(typeof(LinkValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1284accessorDeferredValue = CreateAccessor(typeof(LinkDefValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1285accessorDeferredSource = CreateAccessor(typeof(LinkDefSourceAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1289accessorValue = CreateAccessor(typeof(EntityRefValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1290accessorDeferredValue = CreateAccessor(typeof(EntityRefDefValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1291accessorDeferredSource = CreateAccessor(typeof(EntityRefDefSourceAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1295accessorValue = CreateAccessor(typeof(EntitySetValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1296accessorDeferredValue = CreateAccessor(typeof(EntitySetDefValueAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor); 1297accessorDeferredSource = CreateAccessor(typeof(EntitySetDefSourceAccessor<,>).MakeGenericType(objectDeclaringType, itemType), accessor);
Mapping\MappedMetaModel.cs (9)
1188accessorValue = CreateAccessor(typeof(LinkValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1189accessorDeferredValue = CreateAccessor(typeof(LinkDefValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1190accessorDeferredSource = CreateAccessor(typeof(LinkDefSourceAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1194accessorValue = CreateAccessor(typeof(EntityRefValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1195accessorDeferredValue = CreateAccessor(typeof(EntityRefDefValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1196accessorDeferredSource = CreateAccessor(typeof(EntityRefDefSourceAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1200accessorValue = CreateAccessor(typeof(EntitySetValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1201accessorDeferredValue = CreateAccessor(typeof(EntitySetDefValueAccessor<,>).MakeGenericType(declaringType, itemType), accessor); 1202accessorDeferredSource = CreateAccessor(typeof(EntitySetDefSourceAccessor<,>).MakeGenericType(declaringType, itemType), accessor);
SortableBindingList.cs (1)
71Type comparerType = typeof(Comparer<>).MakeGenericType(prop.PropertyType);
SqlClient\Common\SqlFactory.cs (1)
547clrType = typeof(List<>).MakeGenericType(select.Selection.ClrType);
SqlClient\Common\TypeSystem.cs (4)
26return typeof(IEnumerable<>).MakeGenericType(seqType.GetElementType()); 29Type ienum = typeof(IEnumerable<>).MakeGenericType(arg); 50return typeof(IEnumerable<>).MakeGenericType(elementType); 53return typeof(IEnumerable<>).MakeGenericType(elementType);
SqlClient\Query\QueryConverter.cs (3)
379typeof(Func<,>).MakeGenericType(typeof(object[]), p.Type), 1591Type elementType = typeof(IGrouping<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType); 1613Type elementType = typeof(IGrouping<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType);
SqlClient\Query\SqlBinder.cs (1)
939typeof(Func<,>).MakeGenericType(typeof(object[]), m.ClrType),
SqlClient\Query\SqlMultiplexer.cs (1)
242clrType = typeof(Nullable<>).MakeGenericType(expr.ClrType);
SqlClient\Query\Translator.cs (1)
249Expression source = new LinkedTableExpression(link, table, typeof(IQueryable<>).MakeGenericType(otherType.Type));
SqlClient\Reader\ObjectReaderCompiler.cs (34)
162Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType); 205Type fnMatType = typeof(Func<,>).MakeGenericType(typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType), elementType); 208Type factoryType = typeof(ObjectReaderFactory<,>).MakeGenericType(this.dataReaderType, elementType); 259Type sessionType = typeof(ObjectReaderSession<>).MakeGenericType(this.dataReaderType); 280Type objectReaderType = typeof(ObjectMaterializer<>).MakeGenericType(this.dataReaderType); 977Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1035Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1066Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1160Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1222Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1284Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.GetGenericArguments()); 1351Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1352MethodInfo miCreateGroup = TypeSystem.FindStaticMethod(orbType, "CreateGroup", new Type[] { typeArgs[0], typeof(IEnumerable<>).MakeGenericType(typeArgs[1]) }, typeArgs); 1380mi = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType).GetMethod("GetNestedLinkSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 1399mi = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType).GetMethod("GetLinkSource", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); 1405return typeof(IEnumerable<>).MakeGenericType(elemType); 1438clrType = typeof(Nullable<>).MakeGenericType(clrType); 1451MethodInfo miExecute = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType) 1456Type actualType = typeof(IEnumerable<>).MakeGenericType(clientElementType); 1459Type resultType = typeof(List<>).MakeGenericType(clientElementType); 1469Type listType = typeof(List<>).MakeGenericType(joinElementType); 1509Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1606Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1680seqType = typeof(IEnumerable<>).MakeGenericType(genExpectedTypeArgs); 1695seqType = typeof(IEnumerable<>).MakeGenericType(genExpectedTypeArgs); 1700Type orbType = typeof(ObjectMaterializer<>).MakeGenericType(this.compiler.dataReaderType); 1708seqType = typeof(IEnumerable<>).MakeGenericType(genExpectedTypeArgs); 1734expectedType.IsAssignableFrom(typeof(List<>).MakeGenericType(elemType)) 1737Type listType = typeof(List<>).MakeGenericType(elemType); 1754typeof(ICollection<>).MakeGenericType(elemType).IsAssignableFrom(expectedType) && 2092.MakeGenericType(this.compiler.dataReaderType) 2161Type varType = typeof(StrongBox<>).MakeGenericType(type); 2178this.globals.Add(Activator.CreateInstance(typeof(StrongBox<>).MakeGenericType(type), new object[] { value }));
SqlClient\SqlProvider.cs (5)
1018typeof(SequenceOfOne<>).MakeGenericType(TypeSystem.GetElementType(this.GetResultType(query))), 1053typeof(OneTimeEnumerable<>).MakeGenericType(queryInfo.ResultType), 1105typeof(OneTimeEnumerable<>).MakeGenericType(TypeSystem.GetElementType(queryInfo.ResultType)), 1116typeof(SingleResult<>).MakeGenericType(TypeSystem.GetElementType(queryInfo.ResultType)), 1226Type enumerableType = typeof(OneTimeEnumerable<>).MakeGenericType(elementType);
System.Data.Services (18)
System\Data\Services\DataServiceConfiguration.cs (4)
906Type lambdaType = typeof(Func<,>).MakeGenericType(container.ResourceType.InstanceType, typeof(bool)); 907Type expectedReturnType = typeof(Expression<>).MakeGenericType(lambdaType); 915Type nullableLambdaType = typeof(Func<,>).MakeGenericType(container.ResourceType.InstanceType, typeof(bool?)); 916if (!(typeof(Expression<>).MakeGenericType(nullableLambdaType).IsAssignableFrom(returnType)))
System\Data\Services\Parsing\RequestQueryParser.cs (6)
1458right = Expression.Convert(right, typeof(Nullable<>).MakeGenericType(right.Type)); 1463left = Expression.Convert(left, typeof(Nullable<>).MakeGenericType(left.Type)); 1569left = Expression.Convert(left, typeof(Nullable<>).MakeGenericType(left.Type)); 1573right = Expression.Convert(right, typeof(Nullable<>).MakeGenericType(right.Type)); 1940arguments[arguments.Length - 1] = Expression.Constant(typeof(Nullable<>).MakeGenericType(castTargetType)); 2290falseIf = Expression.Convert(falseIf, typeof(Nullable<>).MakeGenericType(falseIf.Type));
System\Data\Services\Providers\BasicExpandProvider.cs (3)
186Type resultQueryable = typeof(ExpandedQueryable<>).MakeGenericType(query.ElementType); 727return typeof(IEnumerable<>).MakeGenericType(this.elementType); 1418Type delegateType = typeof(Func<,>).MakeGenericType(typeArguments);
System\Data\Services\Providers\ResourceProperty.cs (1)
191return typeof(System.Collections.Generic.IEnumerable<>).MakeGenericType(this.propertyResourceType.InstanceType);
System\Data\Services\RequestUriProcessor.cs (1)
1142typeof(IEnumerable<>).MakeGenericType(enumerableElement));
System\Data\Services\WebUtil.cs (3)
598return method.CreateDelegate(typeof(Func<>).MakeGenericType(targetType)); 869return TypeAllowsNull(type) ? type : typeof(Nullable<>).MakeGenericType(type); 1336return WebUtil.GenericExpandedWrapperTypes.Single(x => x.Index == wrapperParameters.Length - 1).Type.MakeGenericType(wrapperParameters);
System.Data.Services.Client (20)
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
50Type qt = typeof(DataServiceQuery<>.DataServiceOrderedQuery).MakeGenericType(et);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (1)
158if (typeof(List<>).MakeGenericType(elementType).IsAssignableFrom(e.Type) ||
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (1)
70Type delegateType = typeof(Func<,>).MakeGenericType(new Type[] { newLambdaParameter.Type, lambda.Body.Type });
System\Data\Services\Client\ALinq\ResourceBinder.cs (2)
937Type expressionType = typeof(IOrderedQueryable<>).MakeGenericType(elementType); 1275Type t = typeof(DataServiceQuery<>).MakeGenericType(mce.Method.DeclaringType.GetGenericArguments()[0]);
System\Data\Services\Client\ALinq\TypeSystem.cs (2)
199return typeof(IEnumerable<>).MakeGenericType(seqType.GetElementType()); 206Type ienum = typeof(IEnumerable<>).MakeGenericType(arg);
System\Data\Services\Client\AtomMaterializer.cs (3)
557IEnumerable list = (IEnumerable)Util.ActivatorCreateInstance(typeof(List<>).MakeGenericType(resultType)); 770feedType = typeof(System.Collections.ObjectModel.Collection<>).MakeGenericType(nestedExpectedType); 1153collectionType = typeof(System.Collections.ObjectModel.Collection<>).MakeGenericType(property.CollectionType);
System\Data\Services\Client\DataServiceContext.cs (3)
3878collection = Activator.CreateInstance(typeof(List<>).MakeGenericType(nestedType)); 3885IList results = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType)); 3972IList results = (IList)Activator.CreateInstance(typeof(List<>).MakeGenericType(elementType));
System\Data\Services\Client\DataServiceQueryContinuation.cs (1)
96var constructors = typeof(DataServiceQueryContinuation<>).MakeGenericType(plan.ProjectedType).GetConstructors(BindingFlags.NonPublic | BindingFlags.Instance);
System\Data\Services\Client\DataServiceRequest.cs (1)
107Type genericType = typeof(DataServiceRequest<>).MakeGenericType(elementType);
System\Data\Services\Client\MaterializeFromAtom.cs (1)
304implementationType = typeof(System.Collections.ObjectModel.Collection<>).MakeGenericType(expectedType);
System\Data\Services\Client\ProjectionPlanCompiler.cs (1)
848Type enumerable = typeof(IEnumerable<>).MakeGenericType(nex.Type.GetGenericArguments()[0]);
System\Data\Services\Client\QueryResponse.cs (1)
137Type genericType = typeof(QueryOperationResponse<>).MakeGenericType(elementType);
System\Data\Services\Client\Util.cs (1)
448return TypeAllowsNull(type) ? type : typeof(Nullable<>).MakeGenericType(type);
System\Data\Services\Client\WebUtil.cs (1)
187return GetDataServiceCollectionOfTType().MakeGenericType(typeArguments);
System.Data.SqlXml (6)
System\Xml\Xsl\IlGen\GenerateHelper.cs (3)
91SeqType = typeof(XmlQuerySequence<>).MakeGenericType(storageType); 101IListType = typeof(IList<>).MakeGenericType(storageType); 103IListCount = XmlILMethods.GetMethod(typeof(ICollection<>).MakeGenericType(storageType), "get_Count");
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (3)
91typeof(IList<>).MakeGenericType(itemStorageType).IsAssignableFrom(loc.LocalType), 121typeof(IList<>).MakeGenericType(itemStorageType).IsAssignableFrom(methGlobal.ReturnType), 529EnsureLocal(this.helper.DeclareLocal(locName, typeof(IList<>).MakeGenericType(this.storage.ItemStorageType)));
System.Runtime.Serialization (24)
System\Runtime\Serialization\CollectionDataContract.cs (7)
957itemType = Globals.TypeOfKeyValue.MakeGenericType(genericArgs); 959getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).GetMethod(Globals.GetEnumeratorMethodName); 966addMethod = Globals.TypeOfICollectionGeneric.MakeGenericType(itemType).GetMethod(Globals.AddMethodName); 968getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).GetMethod(Globals.GetEnumeratorMethodName); 1094itemType = isOpenGeneric ? Globals.TypeOfKeyValue : Globals.TypeOfKeyValue.MakeGenericType(addMethodTypeArray); 1098itemType = Globals.TypeOfKeyValue.MakeGenericType(addMethodTypeArray);
System\Runtime\Serialization\Configuration\TypeElement.cs (1)
115t = t.MakeGenericType(types);
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (1)
521itemType = Globals.TypeOfKeyValuePair.MakeGenericType(itemType.GetGenericArguments());
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
323DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
634Type type = Globals.TypeOfNullable.MakeGenericType(innerType); 652type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.GetGenericArguments());
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (5)
395incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 410enumeratorType = Globals.TypeOfGenericDictionaryEnumerator.MakeGenericType(keyValueTypes); 470Type ctorParam = Globals.TypeOfIEnumeratorGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(keyValueTypes)); 480Type genericDictionaryKeyValueType = Globals.TypeOfKeyValue.MakeGenericType(keyValueTypes);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
398itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
589Type type = Globals.TypeOfNullable.MakeGenericType(innerType); 609type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.GetGenericArguments());
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
431incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 446enumeratorType = Globals.TypeOfGenericDictionaryEnumerator.MakeGenericType(keyValueTypes); 505Type ctorParam = Globals.TypeOfIEnumeratorGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(keyValueTypes));
System.ServiceModel (5)
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (1)
91validatorType = typeof(StandardRuntimeFlagEnumValidator<>).MakeGenericType(new System.Type[] { this.enumType });
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
488return typeOfIEnumerableGeneric.MakeGenericType(type.GetGenericArguments());
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
160Type knownFaultType = typeof(FaultException<>).MakeGenericType(detailType); 195Type operationFaultType = typeof(OperationFault<>).MakeGenericType(detailType);
System\ServiceModel\MessageHeaderT.cs (1)
125result = (TypedHeaderManager)Activator.CreateInstance(GenericAdapterType.MakeGenericType(t));
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\SendReply.cs (1)
422Type faultType = typeof(FaultException<>).MakeGenericType(substitute);
System.Web (11)
Hosting\ApplicationManager.cs (1)
1575Type closedGenericType = openGenericType.MakeGenericType(
ModelBinding\ArrayModelBinderProvider.cs (1)
12return (IModelBinder)Activator.CreateInstance(typeof(ArrayModelBinder<>).MakeGenericType(elementType));
ModelBinding\CollectionModelBinderUtil.cs (3)
49return (typeArguments != null) ? (IModelBinder)Activator.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null; 94Type closedNewInstanceType = newInstanceType.MakeGenericType(modelTypeArguments); 105Type closedSupportedInterfaceType = supportedInterfaceType.MakeGenericType(modelTypeArguments);
ModelBinding\GenericModelBinderProvider.cs (1)
41Type closedModelBinderType = (modelBinderTypeIsOpenGeneric) ? modelBinderType.MakeGenericType(typeArguments) : modelBinderType;
ModelBinding\ModelBinderProviderCollection.cs (1)
121Type closedBinderType = (attr.BinderType.IsGenericTypeDefinition) ? attr.BinderType.MakeGenericType(modelType.GetGenericArguments()) : attr.BinderType;
ModelBinding\ModelBinderUtil.cs (1)
35return (typeArguments != null) ? (IModelBinder)Activator.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null;
UI\WebControls\ModelDataSourceView.cs (3)
390if (typeof(IQueryable<>).MakeGenericType(typeParameter).IsAssignableFrom(selectMethodReturnType)) { 395Type queryableModelType = (modelType != null) ? typeof(IQueryable<>).MakeGenericType(modelType) : null; 539Type enumerableModelType = (modelType != null) ? typeof(IEnumerable<>).MakeGenericType(modelType) : typeof(IEnumerable);
System.Web.Entity (5)
System\Data\WebControls\EntityDataSourceColumn.cs (1)
349Type columnType = typeof(EntityDataSourceReferenceValueColumn<>).MakeGenericType(clrToType);
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (1)
49Type groupType = typeof(EntityDataSourceReferenceGroup<>).MakeGenericType(entityType);
System\Data\WebControls\EntityDataSourceUtil.cs (1)
742type = typeof(Nullable<>).MakeGenericType(type);
System\Data\WebControls\EntityDataSourceView.cs (2)
228Type builderType = typeof(EntityDataSourceObjectQueryBuilder<>).MakeGenericType(EntityClrType); 293var newQueryBuilderCreateMethod = typeof(EntityDataSourceObjectQueryBuilder<>).MakeGenericType(queryReturned.ElementType).GetMethod("Create", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic, null, queryBuilderCreatorArgTypes, null);
System.Web.Extensions (8)
Script\Serialization\ObjectConverter.cs (3)
204Type t = _dictionaryGenericType.MakeGenericType(keyType, valueType); 460Type strongTypedEnumerable = _enumerableGenericType.MakeGenericType(elementType); 466Type t = _listGenericType.MakeGenericType(elementType);
UI\WebControls\Dynamic.cs (4)
209return funcTypes[typeArgs.Length - 1].MakeGenericType(typeArgs); 381Type ct = typeof(EqualityComparer<>).MakeGenericType(ft); 407Type ct = typeof(EqualityComparer<>).MakeGenericType(ft); 1131type = typeof(Nullable<>).MakeGenericType(type);
UI\WebControls\QueryableDataSourceHelper.cs (1)
59Type listType = typeof(List<>).MakeGenericType(o.GetType());
System.Windows.Forms (1)
winforms\Managed\System\WinForms\BindingSource.cs (1)
689Type bindingType = genericType.MakeGenericType(new Type[] { type });
System.Workflow.Activities (11)
Rules\Literal.cs (2)
913parm1 = typeof(Nullable<>).MakeGenericType(parm1); 914parm2 = typeof(Nullable<>).MakeGenericType(parm2);
Rules\Parser\Parser.cs (3)
2134type = type.MakeGenericType(typeArgs); 2303nestedType = nestedType.MakeGenericType(currentType.GetGenericArguments()); 2323return candidateType.MakeGenericType(typeArgs);
Rules\RuleValidation.cs (6)
296parameterType = typeof(Nullable<>).MakeGenericType(parameter.ParameterType); 430resultType = typeof(Nullable<>).MakeGenericType(method.ReturnType); 465resultType = typeof(Nullable<>).MakeGenericType(method.ReturnType); 613resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType; 644resultType = (resultIsNullable) ? typeof(Nullable<>).MakeGenericType(resultBaseType) : resultBaseType; 3738resultType = resultType.MakeGenericType(typeArguments);
System.Workflow.ComponentModel (5)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
277return baseType.MakeGenericType(this.typeArgs);
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (1)
337return templateType.MakeGenericType(templateParamTypes);
AuthoringOM\Serializer\DictionarySurrogate.cs (1)
78Type dictionaryType = typeof(Dictionary<int, int>).GetGenericTypeDefinition().MakeGenericType(keyType, valueType);
AuthoringOM\Serializer\GenericQueueSurrogate.cs (1)
55Type queueType = typeof(Queue<int>).GetGenericTypeDefinition().MakeGenericType(itemType);
AuthoringOM\Serializer\ListSurrogate.cs (1)
56Type listType = typeof(List<int>).GetGenericTypeDefinition().MakeGenericType(itemType);
System.WorkflowServices (1)
System\Workflow\Runtime\Hosting\ChannelManagerHelpers.cs (1)
287this.channelFactoryType = typeof(ChannelFactory<>).MakeGenericType(typeArguments);
System.Xml (1)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
1456Type typeIEnumerable = arrayTypeDesc.IsGenericInterface ? typeof(IEnumerable<>).MakeGenericType(arrayElementTypeDesc.Type) : typeof(IEnumerable);