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