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