7 overrides of GetGenericArguments
mscorlib (4)
system\reflection\emit\generictypeparameterbuilder.cs (1)
177
public override Type[]
GetGenericArguments
() { throw new InvalidOperationException(); }
system\reflection\emit\typebuilder.cs (1)
1603
public override Type[]
GetGenericArguments
() { return m_inst; }
system\reflection\emit\typebuilderinstantiation.cs (1)
202
public override Type[]
GetGenericArguments
() { return m_inst; }
system\rttype.cs (1)
4190
public override Type[]
GetGenericArguments
()
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1200
public override Type[]
GetGenericArguments
()
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1200
public override Type[]
GetGenericArguments
()
System.Workflow.ComponentModel (1)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (1)
548
public override Type[]
GetGenericArguments
()
356 references to GetGenericArguments
mscorlib (18)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (1)
482
return type.
GetGenericArguments
();
system\nullable.cs (1)
142
result = nullableType.
GetGenericArguments
()[0];
system\reflection\emit\aqnbuilder.cs (1)
177
Type[] genericArguments = rootType.
GetGenericArguments
();
system\reflection\emit\modulebuilder.cs (2)
716
methDef.DeclaringType != null ? methDef.DeclaringType.
GetGenericArguments
() : null,
723
method.DeclaringType != null ? method.DeclaringType.
GetGenericArguments
() : null,
system\reflection\emit\signaturehelper.cs (1)
382
Type[] args = clsArgument.
GetGenericArguments
();
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\methodbody.cs (1)
77
type = module.ResolveType(m_catchMetadataToken, (declaringType == null) ? null : declaringType.
GetGenericArguments
(),
system\reflection\typeinfo.cs (1)
44
return
GetGenericArguments
();
system\runtime\serialization\formatterservices.cs (1)
526
Type[] genericArguments = type.
GetGenericArguments
();
system\type.cs (4)
1000
foreach (Type t in
GetGenericArguments
())
1202
Type[] genericArguments =
GetGenericArguments
();
1352
return
GetGenericArguments
();
1612
foreach (Type genericArgument in
GetGenericArguments
())
system\unityserializationholder.cs (1)
265
return MakeElementTypes(m_declaringType.
GetGenericArguments
()[m_genericParameterPosition]);
PresentationBuildTasks (3)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2300
Type[] typeParams = t.
GetGenericArguments
();
2330
refTypeParams = refType.
GetGenericArguments
();
Framework\System\Windows\Markup\XamlReaderHelper.cs (1)
4856
return iCollectionT.
GetGenericArguments
()[0];
PresentationFramework (4)
src\Framework\System\Windows\Data\CollectionView.cs (1)
1540
Type[] typeParameters = interfaceType.
GetGenericArguments
();
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
3808
((Type)propertyType.
GetGenericArguments
()[0]).Name,
3825
Type genericType = (Type)propertyType.
GetGenericArguments
()[0];
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
724
return interfaceType.
GetGenericArguments
()[0];
System (1)
compmod\system\codedom\CodeTypeReference.cs (1)
108
Type[] genericArgs = type.
GetGenericArguments
();
System.Activities (24)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (1)
352
Type[] typeArgs = type.
GetGenericArguments
();
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (1)
1477
Type[] typeArgs = type.
GetGenericArguments
();
System\Activities\ActivityUtilities.cs (8)
132
argumentType = propertyType.
GetGenericArguments
()[0];
214
Type[] genericArguments = dictionaryInterfaceType.
GetGenericArguments
();
239
Type[] genericArguments = type.
GetGenericArguments
();
262
Type[] genericArguments = interfaceType.
GetGenericArguments
();
307
argumentType = propertyType.
GetGenericArguments
()[0];
343
innerType = propertyType.
GetGenericArguments
()[0];
365
genericArgumentType = type.
GetGenericArguments
()[0];
501
Type[] genericArguments = sourceType.
GetGenericArguments
();
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
305
Type[] genericArguments = type.
GetGenericArguments
();
System\Activities\ExpressionUtilities.cs (8)
1833
return TryRewriteLocationReferenceSubclassGetCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor, isLocationExpression);
1837
return TryRewriteLocationReferenceSubclassGetLocationCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor);
1844
return TryRewriteArgumentGetCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor, isLocationExpression);
1851
return TryRewriteArgumentGetCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor, isLocationExpression);
1855
return TryRewriteArgumentGetLocationCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor);
1862
return TryRewriteLocationReferenceSubclassGetCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor, isLocationExpression);
1869
return TryRewriteLocationReferenceSubclassGetCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor, isLocationExpression);
1873
return TryRewriteLocationReferenceSubclassGetLocationCall(methodCall, targetObjectType.
GetGenericArguments
()[0], out newExpression, publicAccessor);
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (2)
101
Fx.Assert(this.valueType.IsGenericType && this.valueType.
GetGenericArguments
().Length == 1, "Should only get Location<T> here");
102
this.valueType = this.valueType.
GetGenericArguments
()[0];
System\Activities\XamlIntegration\FuncFactory.cs (1)
66
FuncFactory funcFactory = CreateFactory(objectWriterFactory, xamlReader, propertyType.
GetGenericArguments
());
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1423
resultType = resultType.
GetGenericArguments
()[0];
System\Activities\XamlIntegration\TypeConverterBase.cs (1)
115
genericTypeArguments = targetType.
GetGenericArguments
();
System.Activities.Core.Presentation (8)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (2)
177
GenericFlowSwitchHelper.Copy(currentFlowElement.GetType().
GetGenericArguments
()[0], currentFlowElement, clonedFlowElements);
240
GenericFlowSwitchHelper.ReferenceCopy(currentFlowElement.GetType().
GetGenericArguments
()[0],
System\Activities\Core\Presentation\GenericFlowSwitchHelper.cs (2)
156
genericType = flowSwitchType.
GetGenericArguments
()[0];
509
Type keyType = propertyType.
GetGenericArguments
()[0];
System\Activities\Core\Presentation\GenericTypeArgumentConverter.cs (1)
18
return source.
GetGenericArguments
()[Int32.Parse(parameter.ToString(), culture)];
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
166
Type[] types = modelItemType.
GetGenericArguments
();
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (2)
504
Type[] innerArgumentTypes = this.UnderlyingArgumentType.
GetGenericArguments
();
605
Type[] genericArguments = this.UnderlyingArgumentType.
GetGenericArguments
();
System.Activities.Presentation (40)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
45
GenericsMatchEvaluator evaluator = new GenericsMatchEvaluator(type.
GetGenericArguments
(), fullName);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (1)
215
Type targetType = underlyingType.IsGenericType ? underlyingType.
GetGenericArguments
()[0] : null;
System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
42
argument.Type = property.PropertyType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (2)
88
result = type.
GetGenericArguments
();
125
foreach (Type arg in resultType.
GetGenericArguments
())
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
99
Type[] genericArgs = t.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1202
Type[] ifaces = _baseReflectionType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (1)
67
argumentType = expression.ResultType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (1)
73
argumentType = activityWithResult.ResultType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
41
Type expressionArgumentType = expressionType.IsGenericType ? expressionType.
GetGenericArguments
()[0] : typeof(object);
166
if ((isLocation) && (ExpressionHelper.IsGenericLocationExpressionType(originalExpression) && (targetType == resultType.
GetGenericArguments
()[0])) ||
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
238
Type expressionResultType = isLocationExpression ? expression.ResultType.
GetGenericArguments
()[0] : expression.ResultType;
System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (3)
44
Fx.Assert(oldModelItemType.
GetGenericArguments
().Count() == 1, "we only support changing a single type parameter ?");
76
Fx.Assert(modelItem.ItemType.
GetGenericArguments
().Count() == 1, "we only support changing a single type parameter ?");
77
return modelItem.ItemType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (6)
78
Type[] genericArguments = itemsCollectionType.
GetGenericArguments
();
1132
type.
GetGenericArguments
()[0].IsGenericType &&
1133
type.
GetGenericArguments
()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
1136
Type keyValuePairType = type.
GetGenericArguments
()[0];
1143
type.
GetGenericArguments
()[0].IsGenericType &&
1144
type.
GetGenericArguments
()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
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 (1)
1251
this.genericArguments = type.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryExtension.cs (1)
27
argumentType = activityFactoryInterfaceType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
160
Type[] generics = this.EditedType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
974
result = result.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
468
Type[] arguments = property.PropertyType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
442
Type[] arguments = property.PropertyType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
419
Type[] generics = this.SelectedType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\View\TypeKeyValue.cs (1)
177
Type[] generics = this.targetType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
654
result = result.
GetGenericArguments
()[0].MakeArrayType();
System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (2)
23
if (type.
GetGenericArguments
().Length > 0)
25
convertedValue = type.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
902
variableContainer.ItemType.
GetGenericArguments
().Length != 1 ||
903
!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.
GetGenericArguments
()[0]))
918
variableContainer.ItemType.
GetGenericArguments
().Length != 1 ||
919
!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.
GetGenericArguments
()[0]))
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1118
Type[] argumentTypes = itemType.
GetGenericArguments
();
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
71
variableType = propertyType.
GetGenericArguments
()[0];
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
1004
errorType = typeof(ErrorActivity<>).MakeGenericType(this.Type.
GetGenericArguments
()[0]);
System.AddIn (1)
System\Addin\MiniReflection\TypeInfo.cs (1)
192
_isGeneric = type.ContainsGenericParameters || type.IsGenericType || type.
GetGenericArguments
().Length > 0;
System.Core (12)
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
199
delegateType = exprType.
GetGenericArguments
()[0];
Microsoft\Scripting\Ast\TypeUtils.cs (5)
37
return type.
GetGenericArguments
()[0];
308
Type[] genericParameters = genericDelegate.
GetGenericArguments
();
309
Type[] sourceArguments = source.
GetGenericArguments
();
310
Type[] destArguments = dest.
GetGenericArguments
();
709
foreach (Type g in t.
GetGenericArguments
()) {
System\Linq\IQueryable.cs (1)
87
return EnumerableQuery.Create(enumType.
GetGenericArguments
()[0], source);
System\Linq\SequenceQuery.cs (3)
83
return EnumerableQuery.Create(iqType.
GetGenericArguments
()[0], expression);
282
return typeof(IGrouping<,>).MakeGenericType(t.
GetGenericArguments
());
380
tmp = eType.
GetGenericArguments
()[0];
System\Linq\TypeHelper.cs (2)
16
return ienumType.
GetGenericArguments
()[0];
39
return type.
GetGenericArguments
()[0];
System.Data (38)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\TypeNameHelper.cs (1)
45
GenericsMatchEvaluator evaluator = new GenericsMatchEvaluator(type.
GetGenericArguments
(), fullName);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityTemplateFactoryBuilderReader.cs (1)
215
Type targetType = underlyingType.IsGenericType ? underlyingType.
GetGenericArguments
()[0] : null;
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
166
Type[] types = modelItemType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDelegateUtilities.cs (1)
42
argument.Type = property.PropertyType.
GetGenericArguments
()[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\GenericTypeParameterConverter.cs (2)
88
result = type.
GetGenericArguments
();
125
foreach (Type arg in resultType.
GetGenericArguments
())
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
99
Type[] genericArgs = t.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (1)
1202
Type[] ifaces = _baseReflectionType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpressionHelper.cs (2)
41
Type expressionArgumentType = expressionType.IsGenericType ? expressionType.
GetGenericArguments
()[0] : typeof(object);
166
if ((isLocation) && (ExpressionHelper.IsGenericLocationExpressionType(originalExpression) && (targetType == resultType.
GetGenericArguments
()[0])) ||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (3)
44
Fx.Assert(oldModelItemType.
GetGenericArguments
().Count() == 1, "we only support changing a single type parameter ?");
76
Fx.Assert(modelItem.ItemType.
GetGenericArguments
().Count() == 1, "we only support changing a single type parameter ?");
77
return modelItem.ItemType.
GetGenericArguments
()[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (6)
78
Type[] genericArguments = itemsCollectionType.
GetGenericArguments
();
1132
type.
GetGenericArguments
()[0].IsGenericType &&
1133
type.
GetGenericArguments
()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
1136
Type keyValuePairType = type.
GetGenericArguments
()[0];
1143
type.
GetGenericArguments
()[0].IsGenericType &&
1144
type.
GetGenericArguments
()[0].GetGenericTypeDefinition() == typeof(KeyValuePair<,>) &&
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 (1)
1251
this.genericArguments = type.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ActivityTemplateFactoryExtension.cs (1)
27
argumentType = activityFactoryInterfaceType.
GetGenericArguments
()[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
160
Type[] generics = this.EditedType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (1)
974
result = result.
GetGenericArguments
()[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemModelItemViewModel.cs (1)
468
Type[] arguments = property.PropertyType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TreeView\TreeViewItemViewModel.cs (1)
442
Type[] arguments = property.PropertyType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
419
Type[] generics = this.SelectedType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeKeyValue.cs (1)
177
Type[] generics = this.targetType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
654
result = result.
GetGenericArguments
()[0].MakeArrayType();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (2)
23
if (type.
GetGenericArguments
().Length > 0)
25
convertedValue = type.
GetGenericArguments
()[0];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
902
variableContainer.ItemType.
GetGenericArguments
().Length != 1 ||
903
!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.
GetGenericArguments
()[0]))
918
variableContainer.ItemType.
GetGenericArguments
().Length != 1 ||
919
!typeof(Variable).IsAssignableFrom(variableContainer.ItemType.
GetGenericArguments
()[0]))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
1118
Type[] argumentTypes = itemType.
GetGenericArguments
();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (1)
71
variableType = propertyType.
GetGenericArguments
()[0];
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.DataSetExtensions (1)
System\Data\DataRowExtensions.cs (1)
212
.MakeGenericMethod(type.
GetGenericArguments
()[0]));
System.Data.Entity (27)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
1849
valueType = type.
GetGenericArguments
()[0];
System\Data\Common\EntityUtil.cs (2)
158
elementType = collectionInterface.
GetGenericArguments
()[0];
961
valueType, destinationType.
GetGenericArguments
()[0]));
System\Data\Common\Internal\Materialization\Translator.cs (2)
833
valueType = typeof(IEnumerable<>).MakeGenericType(valueType.
GetGenericArguments
());
1746
Type elementType = spannedResultReader.Type.
GetGenericArguments
()[0];
System\Data\Common\Utils\Boolean\IdentifierService.cs (1)
37
Type[] genericArguments = identifierType.
GetGenericArguments
();
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (3)
235
elementType = realType.
GetGenericArguments
()[0];
247
gen.Emit(OpCodes.Box, elementType = realType.
GetGenericArguments
()[0]);
327
elementType = realType.
GetGenericArguments
()[0];
System\Data\Metadata\ObjectItemCollection.cs (1)
209
foreach (Type t in type.
GetGenericArguments
())
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (2)
111
if (!TryGetLoadedType(clrType.
GetGenericArguments
()[0], out elementType))
736
foreach (Type genericArgument in type.
GetGenericArguments
())
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
478
foreach (Type genericArgument in type.
GetGenericArguments
())
System\Data\Objects\ELinq\ExpressionConverter.cs (2)
531
fromClrType.
GetGenericArguments
()[0] == toClrType.
GetGenericArguments
()[0])
System\Data\Objects\ELinq\InitializerFacet.cs (4)
223
Type keyType = this.ClrType.
GetGenericArguments
()[0];
224
Type groupElementType = this.ClrType.
GetGenericArguments
()[1];
239
Type keyType = this.ClrType.
GetGenericArguments
()[0];
240
Type groupElementType = this.ClrType.
GetGenericArguments
()[1];
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
292
MethodInfo enumerableContainsMethod = containsMethod.MakeGenericMethod(declaringType.
GetGenericArguments
());
System\Data\Objects\ELinq\MethodCallTranslator.cs (1)
745
Type elementType = clrReturnType.
GetGenericArguments
()[0];
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
483
foreach (Type genericArgument in type.
GetGenericArguments
())
System\Data\Objects\ELinq\Translator.cs (2)
487
elementType = candidateType.
GetGenericArguments
()[0];
648
return MemberAccessTranslator.TranslateCount(parent, call.Member.DeclaringType.
GetGenericArguments
()[0], call.Expression);
System\Data\Objects\ELinq\TypeSystem.cs (3)
160
foreach (Type arg in seqType.
GetGenericArguments
())
188
return ienum.
GetGenericArguments
()[0];
231
genericTypeArguments = testInterface.
GetGenericArguments
();
System.Data.Linq (28)
DataContext.cs (1)
423
Type rowType = ft.
GetGenericArguments
()[0];
DataShape.cs (1)
243
return mt.
GetGenericArguments
()[0];
DbConvert.cs (1)
181
&& typeof(IEnumerable<>).MakeGenericType(toType.
GetGenericArguments
()[0]).IsAssignableFrom(fromType)
Mapping\AttributedMetaModel.cs (3)
135
Type rowType = ft.
GetGenericArguments
()[0];
143
Type rowType = pt.
GetGenericArguments
()[0];
1281
Type itemType = accessor.Type.
GetGenericArguments
()[0];
Mapping\MappedMetaModel.cs (3)
99
Type rowType = ft.
GetGenericArguments
()[0];
113
Type rowType = pt.
GetGenericArguments
()[0];
1186
Type itemType = accessor.Type.
GetGenericArguments
()[0];
parent\DbmlShared\Mapping.cs (2)
483
type = type.
GetGenericArguments
()[0];
533
type = type.
GetGenericArguments
()[0];
SqlClient\Common\SqlFactory.cs (1)
43
clrType = clrType.
GetGenericArguments
()[0];
SqlClient\Common\TypeSystem.cs (4)
28
foreach (Type arg in seqType.
GetGenericArguments
()) {
58
return ienum.
GetGenericArguments
()[0];
68
return type.
GetGenericArguments
()[0];
192
type = type.
GetGenericArguments
()[0];
SqlClient\Query\QueryConverter.cs (1)
1861
Type rowType = memberType.
GetGenericArguments
()[0];
SqlClient\Query\SqlFormatter.cs (1)
1241
t = t.
GetGenericArguments
()[0];
SqlClient\Query\SqlMethodCallConverter.cs (1)
1000
System.Type clrType = mc.Object.ClrType.
GetGenericArguments
()[0];
SqlClient\Reader\ObjectReaderCompiler.cs (5)
1160
Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.
GetGenericArguments
());
1222
Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.
GetGenericArguments
());
1284
Type argType = typeof(IEnumerable<>).MakeGenericType(memberType.
GetGenericArguments
());
1346
Type[] typeArgs = grp.ClrType.
GetGenericArguments
();
1573
Type[] genExpectedTypeArgs = genExpectedType != null ? expectedType.
GetGenericArguments
() : null;
SqlClient\SqlBuilder.cs (1)
200
type = type.
GetGenericArguments
()[0];
SqlClient\SqlTypeSystemProvider.cs (3)
1415
type = type.
GetGenericArguments
()[0];
1517
type = type.
GetGenericArguments
()[0];
1535
type = type.
GetGenericArguments
()[0];
System.Data.Services (7)
System\Data\Services\Internal\ExpandedWrapper.cs (1)
50
int expectedLength = this.GetType().
GetGenericArguments
().Length - 1;
System\Data\Services\Providers\BaseServiceProvider.cs (2)
480
return type.
GetGenericArguments
()[0];
486
return queriables[0].
GetGenericArguments
()[0];
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1230
return functionParameter.IsGenericType && functionParameter.
GetGenericArguments
().Length == 2;
1505
Type projectedSkipTokenType = this.elementType.
GetGenericArguments
().Skip(this.children.Count + 1).First();
System\Data\Services\Providers\ReflectionServiceProvider.cs (2)
986
Type[] genericArguments = type.
GetGenericArguments
();
1037
foreach (Type arg in type.
GetGenericArguments
())
System.Data.Services.Client (15)
System\Data\Services\Client\ALinq\ReflectionUtil.cs (1)
495
foreach (Type genericArgument in type.
GetGenericArguments
())
System\Data\Services\Client\ALinq\ResourceBinder.cs (1)
1275
Type t = typeof(DataServiceQuery<>).MakeGenericType(mce.Method.DeclaringType.
GetGenericArguments
()[0]);
System\Data\Services\Client\ALinq\TypeSystem.cs (2)
166
return ienum.
GetGenericArguments
()[0];
204
foreach (Type arg in seqType.
GetGenericArguments
())
System\Data\Services\Client\AtomMaterializer.cs (1)
766
Type nestedExpectedType = collectionType.
GetGenericArguments
()[0];
System\Data\Services\Client\Binding\BindingEntityInfo.cs (1)
144
Type[] parms = type.
GetGenericArguments
();
System\Data\Services\Client\Binding\BindingUtils.cs (1)
47
return collectionType.
GetGenericArguments
()[0];
System\Data\Services\Client\ClientType.cs (1)
607
Type[] genericArguments = implementationType.
GetGenericArguments
();
System\Data\Services\Client\MaterializeFromAtom.cs (2)
247
Type expectedType = implementationType.
GetGenericArguments
()[0]; // already know its IList<>
300
Type expectedType = implementationType.
GetGenericArguments
()[0]; // already know its IList<>
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
848
Type enumerable = typeof(IEnumerable<>).MakeGenericType(nex.Type.
GetGenericArguments
()[0]);
976
Type returnElementType = call.Method.ReturnType.
GetGenericArguments
()[0];
1065
Type returnElementType = call.Method.ReturnType.
GetGenericArguments
()[0];
1115
Type enumeratedType = source.Type.
GetGenericArguments
()[0];
1116
Type listElementType = targetType.
GetGenericArguments
()[0];
System.Runtime.Serialization (34)
System\Runtime\Serialization\ClassDataContract.cs (1)
1421
Type[] paramTypes = type.
GetGenericArguments
();
System\Runtime\Serialization\CollectionDataContract.cs (4)
954
Type[] genericArgs = type.
GetGenericArguments
();
1052
itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.
GetGenericArguments
()[0] : Globals.TypeOfObject;
1091
addMethodTypeArray = knownInterfaceType.
GetGenericArguments
();
1102
addMethodTypeArray = knownInterfaceType.
GetGenericArguments
();
System\Runtime\Serialization\Configuration\TypeElement.cs (2)
104
if (parameters.Count != t.
GetGenericArguments
().Length)
107
t.
GetGenericArguments
().Length,
System\Runtime\Serialization\DataContract.cs (9)
1330
foreach (Type argType in itemType.
GetGenericArguments
())
1348
type = type.
GetGenericArguments
()[0];
1356
type = type.
GetGenericArguments
()[0];
1669
Type[] genParams = type.
GetGenericArguments
();
1833
Type[] genericArguments = type.
GetGenericArguments
();
2195
genArgs = rootType.
GetGenericArguments
();
2259
Type[] args = t.
GetGenericArguments
();
2331
foreach (Type genericType in t.
GetGenericArguments
())
2463
: this(DataContract.GetClrTypeFullName(type.GetGenericTypeDefinition()), type.
GetGenericArguments
())
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 (4)
526
type = type.
GetGenericArguments
()[0];
652
type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.
GetGenericArguments
());
767
Type[] keyValueTypes = keyValueType.
GetGenericArguments
();
776
keyType = keyType.
GetGenericArguments
()[0];
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (4)
395
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.
GetGenericArguments
()));
409
keyValueTypes = collectionContract.ItemType.
GetGenericArguments
();
444
&& interfaceType.
GetGenericArguments
()[0] == collectionContract.ItemType)
755
Type innerType = memberType.
GetGenericArguments
()[0];
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
398
itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.
GetGenericArguments
()));
System\Runtime\Serialization\SchemaExporter.cs (1)
275
genericArguments = clrType.
GetGenericArguments
();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
482
type = type.
GetGenericArguments
()[0];
609
type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.
GetGenericArguments
());
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
431
incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.
GetGenericArguments
()));
445
keyValueTypes = collectionContract.ItemType.
GetGenericArguments
();
480
&& interfaceType.
GetGenericArguments
()[0] == collectionContract.ItemType)
733
Type innerType = memberType.
GetGenericArguments
()[0];
System.ServiceModel (6)
System\ServiceModel\Description\ServiceReflector.cs (2)
52
Type[] args = t.
GetGenericArguments
();
925
taskTResult = methodReturnType.
GetGenericArguments
()[0];
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
488
return typeOfIEnumerableGeneric.MakeGenericType(type.
GetGenericArguments
());
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
58
detailType = faultExceptionOfT.
GetGenericArguments
()[0];
System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
363
foreach (Type genericType in t.
GetGenericArguments
())
System\ServiceModel\MessageHeaderT.cs (1)
102
return headerParameterType.
GetGenericArguments
()[0];
System.ServiceModel.Activities (3)
System\ServiceModel\Activities\ContractInferenceHelper.cs (1)
573
Type faultType = type.
GetGenericArguments
()[0];
System\ServiceModel\Activities\SendMessageContent.cs (1)
250
Type faultType = argumentType.
GetGenericArguments
()[0];
System\ServiceModel\Activities\SendParametersContent.cs (1)
217
Type faultType = argumentType.
GetGenericArguments
()[0];
System.ServiceModel.Internals (2)
System\Runtime\TypeHelper.cs (2)
297
destinationType = destinationType.
GetGenericArguments
()[0];
300
sourceType = sourceType.
GetGenericArguments
()[0];
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\SingleBodyParameterDataContractMessageFormatter.cs (1)
82
type = type.
GetGenericArguments
()[0];
System.Web (13)
ModelBinding\CollectionModelBinderUtil.cs (2)
83
Type[] modelTypeArguments = modelMetadata.ModelType.
GetGenericArguments
();
84
if (modelTypeArguments.Length != supportedInterfaceType.
GetGenericArguments
().Length) {
ModelBinding\Error.cs (2)
28
modelType, modelType.
GetGenericArguments
().Length, modelBinderType, modelBinderType.
GetGenericArguments
().Length);
ModelBinding\GenericModelBinderProvider.cs (3)
78
typeArguments = matchingClosedInterface.
GetGenericArguments
();
103
if (modelType.
GetGenericArguments
().Length != modelBinderType.
GetGenericArguments
().Length) {
ModelBinding\ModelBinderProviderCollection.cs (1)
121
Type closedBinderType = (attr.BinderType.IsGenericTypeDefinition) ? attr.BinderType.MakeGenericType(modelType.
GetGenericArguments
()) : attr.BinderType;
ModelBinding\TypeHelpers.cs (1)
18
return (matchingOpenType == openType) ? closedType.
GetGenericArguments
() : null;
UI\WebControls\ModelDataSourceView.cs (2)
389
foreach (Type typeParameter in selectMethodReturnType.
GetGenericArguments
()) {
434
Type[] typeArguments = t.
GetGenericArguments
();
UI\WebControls\ObjectDataSourceView.cs (2)
718
innerDestinationType = destinationType.
GetGenericArguments
()[0];
738
throw new InvalidOperationException(SR.GetString(SR.ObjectDataSourceView_CannotConvertType, paramName, paramValueType.FullName, String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", destinationType.
GetGenericArguments
()[0].FullName)));
System.Web.DynamicData (2)
DynamicData\ModelProviders\DLinqColumnProvider.cs (1)
129
return type.
GetGenericArguments
()[0];
DynamicData\ModelProviders\DLinqDataModelProvider.cs (1)
45
return prop.PropertyType.
GetGenericArguments
()[0];
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
492
underlyingType = type.
GetGenericArguments
()[0];
555
Type[] types = type.
GetGenericArguments
();
System\Data\WebControls\EntityDataSourceViewSchema.cs (1)
105
Type[] typeArguments = propertyType.
GetGenericArguments
();
System.Web.Extensions (15)
Script\Serialization\ObjectConverter.cs (5)
187
Type keyType = type.
GetGenericArguments
()[0];
197
Type valueType = type.
GetGenericArguments
()[1];
454
type.
GetGenericArguments
().Length == 1) {
457
Type elementType = type.
GetGenericArguments
()[0];
564
type.
GetGenericArguments
().Length == 2;
Script\Services\ServicesUtilities.cs (1)
103
return type.
GetGenericArguments
()[0];
Script\Services\WebServiceData.cs (2)
348
(t.IsGenericType && t.
GetGenericArguments
().Length > 1) ||
393
Type[] genericArgs = t.
GetGenericArguments
();
UI\WebControls\ContextDataSourceView.cs (1)
163
Type[] genericTypes = type.
GetGenericArguments
();
UI\WebControls\DataSourceHelper.cs (2)
169
innerDestinationType = destinationType.
GetGenericArguments
()[0];
192
destinationType.
GetGenericArguments
()[0].FullName)));
UI\WebControls\Dynamic.cs (2)
1180
Type elementType = enumerableType.
GetGenericArguments
()[0];
1314
return IsNullableType(type) ? type.
GetGenericArguments
()[0] : type;
UI\WebControls\Expressions\ExpressionHelper.cs (1)
19
return type.
GetGenericArguments
()[0];
UI\WebControls\LinqDataSourceView.cs (1)
960
if (!(tableType.IsGenericType && tableType.
GetGenericArguments
().Length == 1 && typeof(ITable).IsAssignableFrom(tableType))) {
System.Workflow.Activities (11)
Common\TypeSystemHelpers.cs (1)
311
Type[] genericArguments = type.
GetGenericArguments
();
Rules\CodeDomDecompiler.cs (1)
220
Type[] typeArgs = type.
GetGenericArguments
();
Rules\Expressions.cs (2)
2054
fromType2 = fromType2.
GetGenericArguments
()[0];
2058
toType2 = toType2.
GetGenericArguments
()[0];
Rules\Parser\Parser.cs (2)
2303
nestedType = nestedType.MakeGenericType(currentType.
GetGenericArguments
());
2321
Type[] genericArgs = candidateType.
GetGenericArguments
();
Rules\RuleValidation.cs (5)
1628
? Type.GetTypeCode(sourceType.
GetGenericArguments
()[0])
1631
? Type.GetTypeCode(testType.
GetGenericArguments
()[0])
2665
t1 = t1.
GetGenericArguments
()[0];
2668
t2 = t2.
GetGenericArguments
()[0];
3844
Type[] typeArguments = type.
GetGenericArguments
();
System.Workflow.ComponentModel (22)
AuthoringOM\ActivitiesCollection.cs (6)
259
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
272
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
279
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
286
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
309
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
322
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
786
foreach (Type parameterType in type.
GetGenericArguments
())
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (4)
1108
for (int loop = 0; loop < unboundedType.
GetGenericArguments
().Length; loop++)
1111
parameterData.ParameterType = unboundedType.
GetGenericArguments
()[loop];
1113
parameterData.Type = type.
GetGenericArguments
()[loop];
1140
foreach (Type parameterType in type.
GetGenericArguments
())
AuthoringOM\ItemList.cs (6)
326
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
339
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
346
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
353
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
376
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
389
throw new Exception(SR.GetString(SR.Error_InvalidListItem, this.GetType().
GetGenericArguments
()[0].FullName));
AuthoringOM\Serializer\DictionarySurrogate.cs (1)
20
Type[] args = obj.GetType().
GetGenericArguments
();
AuthoringOM\Serializer\GenericQueueSurrogate.cs (1)
21
Type[] args = obj.GetType().
GetGenericArguments
();
AuthoringOM\Serializer\ListSurrogate.cs (1)
21
Type[] args = obj.GetType().
GetGenericArguments
();
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
1238
Type genericType = (Type)propertyType.
GetGenericArguments
()[0];
Shared\TypeSystemHelpers.cs (1)
310
Type[] genericArguments = type.
GetGenericArguments
();
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
141
Type[] argumentTypes = type.
GetGenericArguments
();
System.Xml (16)
System\Xml\Serialization\CodeIdentifier.cs (1)
205
Type[] arguments = t.IsGenericType || t.ContainsGenericParameters ? t.
GetGenericArguments
() : new Type[0];
System\Xml\Serialization\Compiler.cs (1)
74
Type[] arguments = type.
GetGenericArguments
();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
715
Type[] names = genType.
GetGenericArguments
();
716
Type[] types = type.
GetGenericArguments
();
System\Xml\Serialization\SourceInfo.cs (2)
141
varType.
GetGenericArguments
()[0] == elementType) {
192
System.Diagnostics.Debug.Assert(targetType == nullableType || targetType.IsAssignableFrom(nullableType.
GetGenericArguments
()[0]));
System\Xml\Serialization\Types.cs (2)
763
baseType = type.
GetGenericArguments
()[0];
895
Type[] arguments = t.
GetGenericArguments
();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
850
Type[] names = genType.
GetGenericArguments
();
851
Type[] types = type.
GetGenericArguments
();
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
199
if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.
GetGenericArguments
()))
352
if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.
GetGenericArguments
()))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
2797
ilg.Call(varType.GetConstructor(varType.
GetGenericArguments
()));
2834
Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.
GetGenericArguments
().Length == 1 && localA.LocalType.
GetGenericArguments
()[0].IsAssignableFrom(elementType)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3266
Type[] parameterTypes = type.
GetGenericArguments
();