8 overrides of GetGenericArguments
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
231public override Type[] GetGenericArguments() { return _typeArguments; }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedGenericType.cs (1)
19public override Type[] GetGenericArguments()
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
61public abstract override Type[] GetGenericArguments();
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (1)
178public override Type[] GetGenericArguments() { throw new InvalidOperationException(); }
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1051public override Type[] GetGenericArguments() => m_inst ?? EmptyTypes;
src\System\RuntimeType.CoreCLR.cs (1)
3564public override Type[] GetGenericArguments()
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
220public override Type[] GetGenericArguments()
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
103public override Type[] GetGenericArguments() => GetGenericArgumentsNoCopy().CloneArray();
421 references to GetGenericArguments
dotnet-svcutil-lib (34)
FrameworkFork\Microsoft.CodeDom\System\CodeTypeReference.cs (1)
119Type[] genericArgs = type.GetGenericArguments();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (1)
231Type[] arguments = info.IsGenericType || info.ContainsGenericParameters ? t.GetGenericArguments() : new Type[0];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (2)
803Type[] names = genType.GetGenericArguments(); 804Type[] types = type.GetGenericArguments();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
158varType.GetGenericArguments()[0] == elementType) 218System.Diagnostics.Debug.Assert(targetType == nullableType || targetType.IsAssignableFrom(nullableType.GetGenericArguments()[0]));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
879baseType = type.GetGenericArguments()[0]; 1039Type[] arguments = t.GetGenericArguments();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (2)
971Type[] names = genType.GetGenericArguments(); 972Type[] types = type.GetGenericArguments();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
200if (info.IsGenericType || info.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments()))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3734Type[] parameterTypes = type.GetGenericArguments();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
1353_keyValuePairGenericArguments = type.GetGenericArguments();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (4)
1036Type[] genericArgs = type.GetGenericArguments(); 1130itemType = knownInterfaceType.GetTypeInfo().IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.TypeOfObject; 1153addMethodTypeArray = knownInterfaceType.GetGenericArguments(); 1164addMethodTypeArray = knownInterfaceType.GetGenericArguments();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (7)
793return Globals.TypeOfKeyValuePairAdapter.MakeGenericType(type.GetGenericArguments()); 1332type = type.GetGenericArguments()[0]; 1340type = type.GetGenericArguments()[0]; 1690Type[] genParams = type.GetGenericArguments(); 2144DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments())); 2221foreach (Type genericType in t.GetGenericArguments()) 2347: this(DataContract.GetClrTypeFullName(type.GetGenericTypeDefinition()), type.GetGenericArguments())
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
387type = type.GetGenericArguments()[0]; 511type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.GetGenericArguments());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
351incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 365keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 400&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType) 642Type innerType = memberType.GetGenericArguments()[0];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
874taskTResult = methodReturnType.GetGenericArguments()[0];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
463return s_typeOfIEnumerableGeneric.MakeGenericType(type.GetGenericArguments());
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
54detailType = faultExceptionOfT.GetGenericArguments()[0];
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
102return headerParameterType.GetGenericArguments()[0];
InMemory.FunctionalTests (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Components.Endpoints (6)
FormMapping\Factories\CollectionConverterFactory.cs (2)
42return enumerable != null ? enumerable.GetGenericArguments()[0] : type.GetElementType()!; 56var elementType = enumerableType?.GetGenericArguments()[0];
FormMapping\Factories\DictionaryConverterFactory.cs (4)
55var keyType = dictionaryType.GetGenericArguments()[0]; 67var valueType = dictionaryType.GetGenericArguments()[1]; 85var keyType = dictionaryType?.GetGenericArguments()[0]; 98var valueType = dictionaryType?.GetGenericArguments()[1];
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
TypeNameHashTest.cs (1)
72var type = typeof(Nullable<>).GetGenericArguments()[0];
Microsoft.AspNetCore.Diagnostics (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (1)
151var itemType = fieldType.GetGenericArguments()[0];
Internal\JsonRequestHelpers.cs (1)
221var args = type.GetGenericArguments();
Microsoft.AspNetCore.Hosting (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Http.Extensions (18)
RequestDelegateFactory.cs (2)
1113var typeArg = returnType.GetGenericArguments()[0]; 1161var typeArg = returnType.GetGenericArguments()[0];
src\Components\Endpoints\src\FormMapping\Factories\CollectionConverterFactory.cs (2)
42return enumerable != null ? enumerable.GetGenericArguments()[0] : type.GetElementType()!; 56var elementType = enumerableType?.GetGenericArguments()[0];
src\Components\Endpoints\src\FormMapping\Factories\DictionaryConverterFactory.cs (4)
55var keyType = dictionaryType.GetGenericArguments()[0]; 67var valueType = dictionaryType.GetGenericArguments()[1]; 85var keyType = dictionaryType?.GetGenericArguments()[0]; 98var valueType = dictionaryType?.GetGenericArguments()[1];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
74var awaiterResultType = possibleFSharpAsyncType.GetGenericArguments().Single(); 145var typeDef when typeDef == typeof(Task<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(Task), MakeTaskOfUnitToTaskExpression(genericAwaitableType)), 146var typeDef when typeDef == typeof(ValueTask<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(ValueTask), MakeValueTaskOfUnitToValueTaskExpression(genericAwaitableType)), 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\ParameterBindingMethodCache.cs (3)
240var valueTaskResultType = methodInfo.ReturnType.GetGenericArguments()[0]; 264valueTaskResultType.GetGenericArguments()[0] == nonNullableParameterType) 415if (i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IBindableFromHttpContext<>) && i.GetGenericArguments()[0] == type)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
30var genericArguments = template.GetGenericArguments();
Microsoft.AspNetCore.Mvc.Abstractions (5)
src\Shared\ParameterBindingMethodCache.cs (3)
240var valueTaskResultType = methodInfo.ReturnType.GetGenericArguments()[0]; 264valueTaskResultType.GetGenericArguments()[0] == nonNullableParameterType) 415if (i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IBindableFromHttpContext<>) && i.GetGenericArguments()[0] == type)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
362unwrappedType = declaredReturnType.GetGenericArguments()[0];
Microsoft.AspNetCore.Mvc.Core (6)
Infrastructure\ActionResultTypeMapper.cs (1)
19return returnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
74var awaiterResultType = possibleFSharpAsyncType.GetGenericArguments().Single(); 145var typeDef when typeDef == typeof(Task<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(Task), MakeTaskOfUnitToTaskExpression(genericAwaitableType)), 146var typeDef when typeDef == typeof(ValueTask<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(ValueTask), MakeValueTaskOfUnitToValueTaskExpression(genericAwaitableType)), 165.MakeGenericMethod(type.GetGenericArguments());
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
65var enumeratedObjectType = enumerableType.GetGenericArguments()[0];
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageCreateTagHelperTest.cs (1)
86var enumerableType = serviceType.GetGenericArguments().First();
Microsoft.AspNetCore.OpenApi (12)
Extensions\JsonTypeInfoExtensions.cs (2)
98var anonymousTypeProperties = type.GetGenericArguments(); 114var genericArguments = type.GetGenericArguments();
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
74var awaiterResultType = possibleFSharpAsyncType.GetGenericArguments().Single(); 145var typeDef when typeDef == typeof(Task<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(Task), MakeTaskOfUnitToTaskExpression(genericAwaitableType)), 146var typeDef when typeDef == typeof(ValueTask<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(ValueTask), MakeValueTaskOfUnitToValueTaskExpression(genericAwaitableType)), 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\ParameterBindingMethodCache.cs (3)
240var valueTaskResultType = methodInfo.ReturnType.GetGenericArguments()[0]; 264valueTaskResultType.GetGenericArguments()[0] == nonNullableParameterType) 415if (i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IBindableFromHttpContext<>) && i.GetGenericArguments()[0] == type)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Shared.Tests (10)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
74var awaiterResultType = possibleFSharpAsyncType.GetGenericArguments().Single(); 145var typeDef when typeDef == typeof(Task<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(Task), MakeTaskOfUnitToTaskExpression(genericAwaitableType)), 146var typeDef when typeDef == typeof(ValueTask<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(ValueTask), MakeValueTaskOfUnitToValueTaskExpression(genericAwaitableType)), 165.MakeGenericMethod(type.GetGenericArguments());
src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
TypeNameHelperTest.cs (3)
123var genArgsDictionary = openDictionaryType.GetGenericArguments(); 128var genArgsLevel = openLevelType.GetGenericArguments(); 133var genArgsInnerType = openInnerType.GetGenericArguments();
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (1)
847asyncEnumerableType.GetGenericArguments(),
src\SignalR\common\Shared\ReflectionHelper.cs (2)
35Debug.Assert(nullableType.GetGenericArguments().Length == 1); 37streamGenericType = nullableType.GetGenericArguments()[0];
Microsoft.AspNetCore.SignalR.Core (10)
Internal\HubMethodDescriptor.cs (3)
44StreamReturnType = asyncEnumerableType.GetGenericArguments()[0]; 53StreamReturnType = returnType.GetGenericArguments()[0]; 76StreamingParameters.Add(ValidateParameterStreamType(p.ParameterType.GetGenericArguments()[0], p.ParameterType));
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorFSharpSupport.cs (4)
74var awaiterResultType = possibleFSharpAsyncType.GetGenericArguments().Single(); 145var typeDef when typeDef == typeof(Task<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(Task), MakeTaskOfUnitToTaskExpression(genericAwaitableType)), 146var typeDef when typeDef == typeof(ValueTask<>) && IsFSharpUnit(genericAwaitableType.GetGenericArguments()[0]) => (typeof(ValueTask), MakeValueTaskOfUnitToValueTaskExpression(genericAwaitableType)), 165.MakeGenericMethod(type.GetGenericArguments());
src\SignalR\common\Shared\ReflectionHelper.cs (2)
35Debug.Assert(nullableType.GetGenericArguments().Length == 1); 37streamGenericType = nullableType.GetGenericArguments()[0];
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TranslationHelpers.cs (1)
161return IsSimpleType(type.GetGenericArguments()[0]);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (1)
2395var genericParameter = typeof(List<>).GetGenericArguments()[0];
Symbols\AnonymousTypesSymbolTests.cs (2)
242CheckField(type.GetField("<x>i__Field", BindingFlags.NonPublic | BindingFlags.Instance), type.GetGenericArguments()[0]); 243CheckField(type.GetField("<g>i__Field", BindingFlags.NonPublic | BindingFlags.Instance), type.GetGenericArguments()[1]);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
498var expArgs = expType.GetGenericArguments();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrModuleInstance.cs (1)
55Debug.Assert(typeArguments.Count == type.GetGenericArguments().Length);
Debugger\MemberInfo\TypeImpl.cs (1)
184return Type.GetGenericArguments().Select(t => new TypeImpl(t)).ToArray();
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\MethodHandlerDetails.cs (4)
72var genericArguments = interfaceType.GetGenericArguments(); 77var genericArguments = interfaceType.GetGenericArguments(); 82var genericArguments = interfaceType.GetGenericArguments(); 87var genericArguments = interfaceType.GetGenericArguments();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2606Dim genericParameter = GetType(List(Of)).GetGenericArguments()(0)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Options\OptionsTestHelpers.cs (2)
128.WithValue(GetDifferentValue(codeStyle.GetType().GetGenericArguments()[0], codeStyle.Value!)!) 131.WithValue(GetDifferentValue(codeStyle.GetType().GetGenericArguments()[0], codeStyle.Value!)!)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Remote\ServiceDescriptorTests.cs (2)
93foreach (var genericArgument in type.GetGenericArguments()) 123AddTypeRecursive(method.ReturnType.GetGenericArguments().Single(), method);
Microsoft.CommonLanguageServerProtocol.Framework.Package (4)
MethodHandlerDetails.cs (4)
72var genericArguments = interfaceType.GetGenericArguments(); 77var genericArguments = interfaceType.GetGenericArguments(); 82var genericArguments = interfaceType.GetGenericArguments(); 87var genericArguments = interfaceType.GetGenericArguments();
Microsoft.CSharp (13)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (3)
184Type[] args1 = t1.GetGenericArguments(); 185Type[] args2 = t2.GetGenericArguments(); 244return member.DeclaringType.GetGenericArguments()[typeParam.GenericParameterPosition].Equals(typeInst);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs (1)
64: ((AggregateSymbol)OwningSymbol).AssociatedSystemType.GetGenericArguments()
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (9)
332Type[] genericArguments = genericDefinition.GetGenericArguments(); 469if (parentType.GetGenericArguments() == null || pos >= parentType.GetGenericArguments().Length) 475while (parentType.GetGenericArguments().Length > pos) 483if (nextParent?.GetGenericArguments()?.Length > pos) 493return parentType.GetGenericArguments()[pos]; 596return TypeManager.GetNullable(GetCTypeFromType(t.GetGenericArguments()[0])); 674foreach (Type argument in type.GetGenericArguments()) 935Type[] genericArguments = genericDefinition.GetGenericArguments();
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
198return $"{baseName}<{string.Join(", ", type.GetGenericArguments().Select(GetDisplayName))}>";
Microsoft.DotNet.XUnitAssert.Tests (2)
Sdk\ArgumentFormatterTests.cs (2)
534 var genericTypeParameters = typeof(List<>).GetGenericArguments(); 543 var genericTypeParameters = typeof(Dictionary<,>).GetGenericArguments();
Microsoft.Extensions.AI.Abstractions (4)
src\Shared\JsonSchemaExporter\NullabilityInfoContext\NullabilityInfoContext.cs (4)
381Type[] genericArguments = underlyingType.GetGenericArguments(); 461Type[] genericArguments = metaType.GetGenericArguments(); 538Type[] genericArguments = baseType.GetGenericArguments(); 560foreach (Type genericArgument in underlyingType.GetGenericArguments())
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
816elementType = type.GetGenericArguments()[0]; 864Type elementType = type.GetGenericArguments()[0];
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\CallSiteFactory.cs (2)
57Type[] serviceTypeGenericArguments = serviceType.GetGenericArguments(); 58Type[] implementationTypeGenericArguments = implementationType.GetGenericArguments();
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Diagnostics.Abstractions (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Http (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Logging.Abstractions (2)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.JSInterop (3)
Infrastructure\DotNetObjectReferenceJsonConverterFactory.cs (1)
28var instanceType = typeToConvert.GetGenericArguments()[0];
Infrastructure\TaskGenericsUtil.cs (2)
51? taskType.GetGenericArguments()[0] 108var resultType = tcsType.GetGenericArguments()[0];
Microsoft.ML.Core (5)
CommandLine\CmdParser.cs (3)
1116typeBase = type.GetGenericArguments()[0]; 1798type = type.GetGenericArguments()[0]; 2184type = type.GetGenericArguments()[0];
EntryPoints\ModuleArgs.cs (2)
607type = type.GetGenericArguments()[0]; 634&& type.GetGenericArguments()[0] == typeof(string))
Microsoft.ML.Data (47)
Data\DataViewUtils.cs (2)
1132$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'."); 1323$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
DataLoadSave\Binary\BinaryLoader.cs (2)
511Type[] args = valueType.GetGenericArguments(); 2043$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
DataLoadSave\Database\DatabaseLoaderCursor.cs (1)
167$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
DataLoadSave\Text\TextLoaderCursor.cs (1)
326$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
DataLoadSave\Transpose\TransposeLoader.cs (3)
697$"expected type: '{_getter.GetType().GetGenericArguments().First().GetGenericArguments().First()}'."); 891$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
DataView\AppendRowsDataView.cs (1)
197$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
DataView\BatchDataViewMapperBase.cs (1)
126$"expected type: '{getter.GetType().GetGenericArguments().First()}'.");
DataView\CacheDataView.cs (1)
1213$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
DataView\DataViewConstructionUtils.cs (5)
266Host.Assert(outputType.GetGenericArguments()[0] == vectorType.ItemType.RawType); 438$"expected type: '{getter.GetType().GetGenericArguments().First()}'."); 920var dstItemType = typeof(TDst).GetGenericArguments()[0]; 945var dstItemType = typeof(TDst).GetGenericArguments()[0]; 946var itemType = typeT.GetGenericArguments()[0];
DataView\InternalSchemaDefinition.cs (1)
170itemType = rawType.GetGenericArguments()[0];
DataView\RowToRowMapperTransform.cs (2)
341$"expected type: '{originFn.GetType().GetGenericArguments().First()}'."); 408$"expected type: '{getter.GetType().GetGenericArguments().First()}'.");
DataView\Transposer.cs (5)
321$"expected type: '{_getter.GetType().GetGenericArguments().First().GetGenericArguments().First()}'."); 1175$"expected type: '{originFn.GetType().GetGenericArguments().First()}'."); 1374var genTypeArgs = type.GetGenericArguments(); 1508$"expected type: '{_getter.GetType().GetGenericArguments().First()}'.");
DataView\TypedCursor.cs (1)
386Ch.Assert(fieldType.GetGenericArguments()[0] == vectorType.ItemType.RawType);
EntryPoints\InputBuilder.cs (8)
133type = type.GetGenericArguments()[0]; 339type.GetGenericArguments()[0] == typeof(string)) 394type = type.GetGenericArguments()[0]; 417type = type.GetGenericArguments()[0]; 481return Utils.MarshalInvoke(makeDict, type.GetGenericArguments()[1], ectx, (JObject)value, attributes, catalog); 640return Utils.MarshalInvoke(creator, outerType.GetGenericArguments()[0], innerValue); 671outputType = outputType.GetGenericArguments()[0]; 709type = type.GetGenericArguments()[0];
Scorers\PredictionTransformer.cs (3)
830if (att.LoadType.IsGenericType && att.LoadType.GetGenericArguments().Length == modelType.GetGenericArguments().Length) 836Type[] typeArguments = modelType.GetGenericArguments();
Scorers\RowToRowScorerBase.cs (1)
304$"expected type: '{getter.GetType().GetGenericArguments().First()}'.");
Transforms\GenerateNumberTransform.cs (1)
447$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
Transforms\LabelConvertTransform.cs (2)
228$"expected type: '{_getter.GetType().GetGenericArguments().First().GetGenericArguments().First()}'.");
Transforms\NAFilter.cs (1)
433$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
Transforms\PerGroupTransformBase.cs (1)
309$"expected type: '{getter.GetType().GetGenericArguments().First()}'.");
Transforms\RangeFilter.cs (1)
328$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
Transforms\RowShufflingTransformer.cs (1)
721$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
Transforms\TransformBase.cs (2)
237$"expected type: '{originFn.GetType().GetGenericArguments().First()}'."); 911$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
Microsoft.ML.EntryPoints (7)
JsonUtils\JsonManifestUtils.cs (7)
74type = type.GetGenericArguments()[0]; 93type = type.GetGenericArguments()[0]; 288outputType = outputType.GetGenericArguments()[0]; 328type = type.GetGenericArguments()[0]; 376jo[FieldNames.ItemType] = BuildTypeToken(ectx, fieldInfo, type.GetGenericArguments()[1], catalog); 405valueType = valueType.GetGenericArguments()[0]; 410valueType = valueType.GetGenericArguments()[0];
Microsoft.ML.Parquet (2)
ParquetLoader.cs (1)
606$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
PartitionedFileLoader.cs (1)
428$"expected type: '{originGetter.GetType().GetGenericArguments().First()}'.");
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLine.cs (1)
307return type.GetGenericArguments()[0].Name + "?";
Microsoft.ML.TimeSeries (2)
SequentialTransformerBase.cs (2)
995$"expected type: '{originFn.GetType().GetGenericArguments().First()}'."); 1067$"expected type: '{getter.GetType().GetGenericArguments().First()}'.");
Microsoft.ML.Transforms (6)
ExpressionTransformer.cs (2)
427var types = _columns[iinfo].Del.GetType().GetGenericArguments(); 569var types = _columns[iinfo].Del.GetType().GetGenericArguments();
OptionalColumnTransform.cs (1)
493$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
ProduceIdTransform.cs (1)
223$"expected type: '{idGetter.GetType().GetGenericArguments().First()}'.");
StatefulCustomMappingTransformer.cs (1)
326$"expected type: '{originFn.GetType().GetGenericArguments().First()}'.");
SvmLight\SvmLightLoader.cs (1)
487$"expected type: '{_getter.GetType().GetGenericArguments().First()}'.");
Microsoft.VisualBasic.Core (8)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (2)
2638TargetType.GetGenericArguments().Length > 0 AndAlso 2639InvocationResult.GetType().Equals(TargetType.GetGenericArguments()(0))) Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
518Return type.GetGenericArguments
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (2)
471Dim typeArgs As Type() = typ.GetGenericArguments 476typeArgsCount = typeArgsCount - typ.DeclaringType.GetGenericArguments().Length
Microsoft\VisualBasic\CompilerServices\Utils.vb (3)
295Dim args1 As Type() = t1.GetGenericArguments() 296Dim args2 As Type() = t2.GetGenericArguments() 340Return member.DeclaringType.GetGenericArguments()(typeParam.GenericParameterPosition).Equals(typeInst)
Microsoft.VisualStudio.LanguageServices (1)
ErrorReporting\VisualStudioErrorReportingService.ExceptionFormatting.cs (1)
111FormatGenericArguments(stringBuilder, declaringType.GetGenericArguments());
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2352Type[] typeParams = t.GetGenericArguments(); 2382refTypeParams = refType.GetGenericArguments();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
4894return iCollectionT.GetGenericArguments()[0];
PresentationFramework (11)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
47var args = type.GetGenericArguments().Select(t => GetSignature(t));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (5)
45? abiTypeDefinition.MakeGenericType(publicType.GetGenericArguments()) 64? publicTypeDefinition.MakeGenericType(abiType.GetGenericArguments()) 117foreach (var arg in type.GetGenericArguments()) 151var genericConstraints = definition.GetGenericArguments(); 152var genericArguments = type.GetGenericArguments();
MS\Internal\WindowsRuntime\Generated\WinRT\TypeExtensions.cs (1)
53vftblType = vftblType.MakeGenericType(helperType.GetGenericArguments());
System\Windows\Data\CollectionView.cs (1)
1513Type[] typeParameters = interfaceType.GetGenericArguments();
System\Windows\Markup\BamlRecordReader.cs (2)
3753((Type)propertyType.GetGenericArguments()[0]).Name, 3770Type genericType = (Type)propertyType.GetGenericArguments()[0];
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
698return interfaceType.GetGenericArguments()[0];
System.CodeDom (1)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
106Type[] genericArgs = type.GetGenericArguments();
System.ComponentModel.Composition (14)
Microsoft\Internal\Collections\CollectionServices.cs (2)
43return closedType.GetGenericArguments()[0]; 53return closedType.GetGenericArguments()[0];
Microsoft\Internal\GenerationServices.cs (1)
224elementType = closedType.GetGenericArguments()[0];
System\ComponentModel\Composition\ContractNameServices.cs (4)
128Queue<Type> genericTypeArguments = new Queue<Type>(type.GetGenericArguments()); 340return type.GetGenericArguments().Length; 346int delclaringTypeGenericArguments = type.DeclaringType.GetGenericArguments().Length; 347int typeGenericArguments = type.GetGenericArguments().Length;
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
71var typeGenericArguments = memberType.GetGenericArguments(); 72var metadataTypeGenericArguments = specifiedContractType.GetGenericArguments(); 213Type[] genericArguments = type.GetGenericArguments(); 511metadata[CompositionConstants.GenericParametersMetadataName] = type.GetGenericArguments();
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (2)
58foreach (Type genericArgument in type.GetGenericArguments()) 119Type[] typeGenericArguments = type.GetGenericArguments();
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
131Type[] arguments = type.GetGenericArguments();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\NullableConverter.cs (1)
18private static readonly ConstructorInfo s_nullableConstructor = typeof(Nullable<>).GetConstructor(typeof(Nullable<>).GetGenericArguments())!;
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
294type = type.GetGenericArguments()[0];
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesFilterAndTransform.cs (1)
780Type elemType = enumerableOfTType.GetGenericArguments()[0];
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecord.cs (1)
129Type[] genericTypes = type.GetGenericArguments();
System.Linq.Expressions (8)
System\Dynamic\Utils\TypeUtils.cs (7)
20private static readonly ConstructorInfo s_nullableConstructor = typeof(Nullable<>).GetConstructor(typeof(Nullable<>).GetGenericArguments())!; 22public static Type GetNonNullableType(this Type type) => IsNullableType(type) ? type.GetGenericArguments()[0] : type; 447Type[] destParams = dest.GetGenericArguments(); 474Type[] sourceParams = source.GetGenericArguments(); 543Type[] genericParameters = genericDelegate.GetGenericArguments(); 544Type[] sourceArguments = source.GetGenericArguments(); 545Type[] destArguments = dest.GetGenericArguments();
System\Linq\Expressions\InvocationExpression.cs (1)
753delegateType = exprType.GetGenericArguments()[0];
System.Linq.Queryable (3)
System\Linq\EnumerableQuery.cs (1)
70return Create(iqType.GetGenericArguments()[0], expression);
System\Linq\EnumerableRewriter.cs (2)
130return typeof(IGrouping<,>).MakeGenericType(t.GetGenericArguments()); 369tmp = eType.GetGenericArguments()[0];
System.Private.CoreLib (23)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
366elementType = type.GetGenericArguments()[0]; 381elementType = ifaceType.GetGenericArguments()[0];
src\libraries\System.Private.CoreLib\src\System\Nullable.cs (1)
113return nullableType.GetGenericArguments()[0];
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (3)
361type = type.MakeGenericType(type.GetGenericArguments()); 394type = type.MakeGenericType(type.GetGenericArguments()); 427type = type.MakeGenericType(type.GetGenericArguments());
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
292Type[] genericArguments = rootType.GetGenericArguments();
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedGenericType.cs (1)
25Type[] genericArguments = UnmodifiedType.GetGenericArguments();
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (4)
395Type[] genericArguments = underlyingType.GetGenericArguments(); 475Type[] genericArguments = metaType.GetGenericArguments(); 560Type[] genericArguments = baseType.GetGenericArguments(); 581foreach (Type genericArgument in underlyingType.GetGenericArguments())
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
16public virtual Type[] GenericTypeParameters => IsGenericTypeDefinition ? GetGenericArguments() : EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
79public virtual Type[] GenericTypeArguments => (IsGenericType && !IsGenericTypeDefinition) ? GetGenericArguments() : EmptyTypes;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
55Type[] genericArguments = GetGenericArguments(); 107foreach (Type t in GetGenericArguments())
src\System\Collections\Generic\ComparerHelpers.cs (2)
43var embeddedType = (RuntimeType)type.GetGenericArguments()[0]; 81var embeddedType = (RuntimeType)type.GetGenericArguments()[0];
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
422methDef.DeclaringType?.GetGenericArguments(), 429methodBase.DeclaringType?.GetGenericArguments(),
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
1258Type inst = genericTypeDefinition.MakeGenericType(m_typeParent.GetGenericArguments());
src\System\Reflection\Emit\SignatureHelper.cs (1)
339Type[] args = clsArgument.GetGenericArguments();
src\System\Reflection\RuntimeExceptionHandlingClause.cs (1)
58type = module.ResolveType(_catchMetadataToken, declaringType?.GetGenericArguments(),
System.Private.DataContractSerialization (40)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
106Type[] genericArgs = type.GetGenericArguments();
System\Runtime\Serialization\ClassDataContract.cs (1)
1345Type[] paramTypes = type.GetGenericArguments();
System\Runtime\Serialization\CollectionDataContract.cs (9)
772MethodInfo? buildIncrementCollectionCountDelegate = GetBuildIncrementCollectionCountGenericDelegate(typeof(KeyValuePair<,>).MakeGenericType(ItemType.GetGenericArguments())); 820Type[]? keyValueTypes = ItemType.GetGenericArguments(); 849Type[] keyValueTypes = ItemType.GetGenericArguments(); 878&& interfaceType.GetGenericArguments()[0] == ItemType) 1060Type[] genericArgs = type.GetGenericArguments(); 1164itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.TypeOfObject; 1208addMethodTypeArray = knownInterfaceType.GetGenericArguments(); 1219addMethodTypeArray = knownInterfaceType.GetGenericArguments(); 1389Type[] paramTypes = type.GetGenericArguments();
System\Runtime\Serialization\DataContract.cs (7)
1149foreach (Type argType in itemType.GetGenericArguments()) 1167type = type.GetGenericArguments()[0]; 1175type = type.GetGenericArguments()[0]; 1487Type[] genParams = type.GetGenericArguments(); 2027DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments())); 2128foreach (Type genericType in t.GetGenericArguments()) 2276: this(DataContract.GetClrTypeFullName(type.GetGenericTypeDefinition()), type.GetGenericArguments())
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
475type = type.GetGenericArguments()[0]; 610type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.GetGenericArguments()); 728Type[] keyValueTypes = keyValueType.GetGenericArguments(); 737keyType = keyType.GetGenericArguments()[0];
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (4)
354incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 368keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 401&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType) 727Type innerType = memberType.GetGenericArguments()[0];
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (2)
149Type[] keyValueTypes = keyValueType.GetGenericArguments(); 157keyType = keyType.GetGenericArguments()[0];
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
72Type[] itemTypeGenericArguments = collectionContract.ItemType.GetGenericArguments();
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
415itemContract = context.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments()));
System\Runtime\Serialization\ReflectionReader.cs (3)
256type = type.GetGenericArguments()[0]; 351type = type.GetGenericArguments()[0]; 489Type type = Globals.TypeOfDictionaryGeneric.MakeGenericType(collectionContract.ItemType.GetGenericArguments());
System\Runtime\Serialization\SchemaExporter.cs (1)
269genericArguments = clrType.GetGenericArguments();
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
512type = type.GetGenericArguments()[0]; 646type = Globals.TypeOfDictionaryGeneric.MakeGenericType(itemType.GetGenericArguments());
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (4)
433incrementCollectionCountMethod = XmlFormatGeneratorStatics.IncrementCollectionCountGenericMethod.MakeGenericMethod(Globals.TypeOfKeyValuePair.MakeGenericType(collectionContract.ItemType.GetGenericArguments())); 447keyValueTypes = collectionContract.ItemType.GetGenericArguments(); 480&& interfaceType.GetGenericArguments()[0] == collectionContract.ItemType) 740Type innerType = memberType.GetGenericArguments()[0];
System.Private.Windows.Core (5)
System\DisposalTracking.cs (1)
72friendlyName += $"<{string.Join(",", type.GetGenericArguments().Select(GetFriendlyTypeName))}>";
System\TypeExtensions.cs (4)
109Type[] genericTypes = type.GetGenericArguments(); 252Type[] genericArguments = type.GetGenericArguments(); 254for (int i = 0; i < type.GetGenericArguments().Length; i++) 279? type.GetGenericArguments()[0]
System.Private.Xml (16)
System\Xml\Serialization\CodeIdentifier.cs (1)
240Type[] arguments = t.IsGenericType || t.ContainsGenericParameters ? t.GetGenericArguments() : Type.EmptyTypes;
System\Xml\Serialization\Compiler.cs (1)
56Type[] arguments = type.GetGenericArguments();
System\Xml\Serialization\SoapReflectionImporter.cs (2)
781Type[] names = genType.GetGenericArguments(); 782Type[] types = type.GetGenericArguments();
System\Xml\Serialization\SourceInfo.cs (2)
160varType.GetGenericArguments()[0] == elementType) 222System.Diagnostics.Debug.Assert(targetType == nullableType || targetType.IsAssignableFrom(nullableType.GetGenericArguments()[0]));
System\Xml\Serialization\Types.cs (2)
837baseType = type.GetGenericArguments()[0]; 990Type[] arguments = t.GetGenericArguments();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
976Type[] names = genType.GetGenericArguments(); 977Type[] types = type.GetGenericArguments();
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
188if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments())) 353if (type.IsGenericType || type.ContainsGenericParameters && DynamicAssemblies.IsTypeDynamic(type.GetGenericArguments()))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
2777ilg.Call(varType.GetConstructor(varType.GetGenericArguments())!); 2819Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1508Type[] parameterTypes = type.GetGenericArguments();
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
222return _typeInfo.GetGenericArguments();
System.Reflection.Emit (6)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
292Type[] genericArguments = rootType.GetGenericArguments();
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
740declaringType = declaringType.MakeGenericType(declaringType.GetGenericArguments()); 820!ContainsTypeBuilder(declaringType.GetGenericArguments())) 1107ContainsTypeBuilder(type.GetGenericArguments());
System\Reflection\Emit\SignatureHelper.cs (1)
196Type[] genericArguments = type.GetGenericArguments();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
215(_typeParent.GetGenericTypeDefinition() is TypeBuilderImpl || _module.ContainsTypeBuilder(_typeParent.GetGenericArguments())))
System.Reflection.MetadataLoadContext (1)
System\CoreRtBridge.cs (1)
22return t.GetGenericArguments();
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
141return type.GetGenericArguments();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
361foreach (Type genericArgument in type.GetGenericArguments())
System.Text.Json (25)
System\ReflectionExtensions.cs (1)
34return type.IsAssignableFrom(from.GetGenericArguments()[0]);
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs (1)
27Type elementType = asyncEnumerableInterface.GetGenericArguments()[0];
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (15)
59elementType = actualTypeToConvert.GetGenericArguments()[0]; 64genericArgs = actualTypeToConvert.GetGenericArguments(); 72genericArgs = typeToConvert.GetGenericArguments(); 80genericArgs = actualTypeToConvert.GetGenericArguments(); 88genericArgs = actualTypeToConvert.GetGenericArguments(); 97elementType = typeToConvert.GetGenericArguments()[0]; 103elementType = actualTypeToConvert.GetGenericArguments()[0]; 109elementType = actualTypeToConvert.GetGenericArguments()[0]; 115elementType = actualTypeToConvert.GetGenericArguments()[0]; 121elementType = actualTypeToConvert.GetGenericArguments()[0]; 127elementType = actualTypeToConvert.GetGenericArguments()[0]; 133elementType = actualTypeToConvert.GetGenericArguments()[0]; 139elementType = actualTypeToConvert.GetGenericArguments()[0]; 145elementType = actualTypeToConvert.GetGenericArguments()[0]; 182int numberOfGenericArgs = converterType.GetGenericArguments().Length;
System\Text\Json\Serialization\Converters\Collection\MemoryConverterFactory.cs (1)
31Type elementType = typeToConvert.GetGenericArguments()[0];
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (5)
40elementType = typeToConvert.GetGenericArguments()[0]; 45elementType = typeToConvert.GetGenericArguments()[0]; 50elementType = typeToConvert.GetGenericArguments()[0]; 54elementType = typeToConvert.GetGenericArguments()[0]; 58Type[] genericArgs = typeToConvert.GetGenericArguments();
System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs (1)
23Type valueTypeToConvert = typeToConvert.GetGenericArguments()[0];
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
118Type[] genericArgs = underlyingIDictionaryType.GetGenericArguments();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\EventBindingService.cs (1)
153Type[] args = evInfo.EventHandlerType.GetGenericArguments();
System.Xaml (4)
System\Xaml\Schema\TypeReflector.cs (1)
142foreach (Type typeArg in type.GetGenericArguments())
System\Xaml\XamlType.cs (3)
1267Type[] typeArgs = underlyingType.GetGenericArguments(); 1309Type[] typeArgs = underlyingType.GetGenericArguments(); 1608Type[] types = genericType.GetGenericArguments();