7 overrides of GetGenericArguments
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
230public override Type[] GetGenericArguments() { return _typeArguments; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedGenericType.cs (1)
19public override Type[] GetGenericArguments()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
65public abstract override Type[] GetGenericArguments();
System\RuntimeType.NativeAot.cs (1)
458public override Type[] GetGenericArguments()
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (1)
98public 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<Type>();
458 references to GetGenericArguments
aspire (1)
Commands\SettingsSchemaBuilder.cs (1)
145var valueType = dictInterfaces[0].GetGenericArguments()[1];
Aspire.Hosting (4)
Ats\CollectionExports.cs (3)
188return type.GetGenericArguments()[0]; 193return type.GetGenericArguments()[0]; 198?.GetGenericArguments()[0];
ResourceBuilderExtensions.cs (1)
1061&& i.GetGenericArguments()[0] == customType);
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
2263return SanitizePythonTypeName(typeName + string.Concat(clrType.GetGenericArguments().Select(GetClrTypeName)));
Aspire.Hosting.RemoteHost (27)
Ats\AtsCallbackProxyFactory.cs (1)
80? returnType.GetGenericArguments()[0]
Ats\AtsMarshaller.cs (5)
391return CreateTypeRef(declaredType.GetGenericArguments()[0]); 467var genericArgs = type.GetGenericArguments(); 482var genericArgs = type.GetGenericArguments(); 605var elementType = targetType.GetGenericArguments()[0]; 631var genericArgs = targetType.GetGenericArguments();
Ats\GenericMethodResolver.cs (3)
60var typeArgs = paramType.GetGenericArguments(); 70return argType.GetGenericArguments()[k]; 80return iface.GetGenericArguments()[k];
Ats\PolyglotCapabilityInvocationException.cs (4)
309return $"a resource builder for {DescribeResourceContract(type.GetGenericArguments()[0])}"; 359return valueType.GetGenericArguments()[0]; 370return builderType.GetGenericArguments()[0]; 377return builderInterface?.GetGenericArguments()[0];
AtsCapabilityScanner.cs (14)
1607propType.GetGenericArguments().Skip(1).FirstOrDefault()?.FullName == "System.Object"; 1612var keyTypeRef = CreateTypeRef(propType.GetGenericArguments().First(), enumCollector: null, assemblyExportedTypeCache); 2216var innerType = returnType.GetGenericArguments().FirstOrDefault(); 2247var genericArgs = delegateType.GetGenericArguments().ToList(); 2308var innerType = funcReturnType.GetGenericArguments().FirstOrDefault(); 2353var genericArgs = type.GetGenericArguments(); 2363var genericArgs = type.GetGenericArguments(); 2409var genericArgs = type.GetGenericArguments(); 2652var genericArgs = type.GetGenericArguments(); 2663var genericArgs = type.GetGenericArguments(); 2733var genericArgs = type.GetGenericArguments(); 2939var genericArgs = type.GetGenericArguments(); 3117var genericArgs = type.GetGenericArguments(); 3872return $"{typeDefinitionName}{{{string.Join(",", type.GetGenericArguments().Select(GetXmlDocumentationTypeName))}}}";
Aspire.Hosting.Tests (1)
ResourceNotificationTests.cs (1)
1713var elementType = type.GetGenericArguments()[0];
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];
Microsoft.AspNetCore.Components.Endpoints (10)
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];
Forms\ClientValidationCache.cs (1)
191return interfaceType.GetGenericArguments()[0];
Serialization\JsonStoredDataSerializer.cs (3)
43var arguments = type.GetGenericArguments(); 134var arguments = Array.ConvertAll(type.GetGenericArguments(), GetStorageToken); 155return type.IsGenericType && Array.Exists(type.GetGenericArguments(), ContainsEnum);
Microsoft.AspNetCore.Diagnostics (2)
src\aspnetcore\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)
152var itemType = fieldType.GetGenericArguments()[0];
Internal\JsonRequestHelpers.cs (1)
221var args = type.GetGenericArguments();
Microsoft.AspNetCore.Hosting (2)
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Http.Extensions (18)
RequestDelegateFactory.cs (2)
1125var typeArg = returnType.GetGenericArguments()[0]; 1173var typeArg = returnType.GetGenericArguments()[0];
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\CollectionConverterFactory.cs (2)
42return enumerable != null ? enumerable.GetGenericArguments()[0] : type.GetElementType()!; 56var elementType = enumerableType?.GetGenericArguments()[0];
src\aspnetcore\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\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\aspnetcore\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\aspnetcore\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\aspnetcore\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\aspnetcore\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\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
456unwrappedType = declaredReturnType.GetGenericArguments()[0];
Microsoft.AspNetCore.Mvc.Core (7)
Infrastructure\ActionResultTypeMapper.cs (1)
19return returnType.GetGenericArguments()[0];
Infrastructure\AsyncEnumerableReader.cs (1)
65var enumeratedObjectType = enumerableType.GetGenericArguments()[0];
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\aspnetcore\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\aspnetcore\src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
65var enumeratedObjectType = enumerableType.GetGenericArguments()[0];
Microsoft.AspNetCore.OpenApi (14)
Extensions\JsonTypeInfoExtensions.cs (3)
106var anonymousTypeProperties = type.GetGenericArguments(); 114return type.GetGenericArguments()[0].GetSchemaReferenceId(options); 136var genericArguments = type.GetGenericArguments();
Services\OpenApiDocumentService.cs (1)
523eventDataType = responseType.GetGenericArguments()[0];
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\aspnetcore\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\aspnetcore\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\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (2)
63var genericArguments = type.GetGenericArguments(); 117offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (1)
1109asyncEnumerableType.GetGenericArguments(),
src\aspnetcore\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\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
408resultType = methodReturnType.GetGenericArguments()[0];
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\ReflectionHelper.cs (2)
35Debug.Assert(nullableType.GetGenericArguments().Length == 1); 37streamGenericType = nullableType.GetGenericArguments()[0];
Microsoft.Build.Framework (1)
TaskItemTypeDetector.cs (1)
44valueType = parameterType.GetGenericArguments()[0];
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\ComInterop\TypeUtils.cs (2)
17return type.GetGenericArguments()[0]; 61&& dest.GetGenericArguments()[0] == src.GetElementType())
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)
340Type[] genericArguments = genericDefinition.GetGenericArguments(); 478if (parentType.GetGenericArguments() == null || pos >= parentType.GetGenericArguments().Length) 484while (parentType.GetGenericArguments().Length > pos) 492if (nextParent?.GetGenericArguments()?.Length > pos) 502return parentType.GetGenericArguments()[pos]; 608return TypeManager.GetNullable(GetCTypeFromType(t.GetGenericArguments()[0])); 688foreach (Type argument in type.GetGenericArguments()) 955Type[] genericArguments = genericDefinition.GetGenericArguments();
Microsoft.DotNet.Internal.DependencyInjection.Testing (1)
DependencyInjectionValidation.cs (1)
198return $"{baseName}<{string.Join(", ", type.GetGenericArguments().Select(GetDisplayName))}>";
Microsoft.Extensions.AI.Abstractions (4)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (4)
381Type[] genericArguments = underlyingType.GetGenericArguments(); 461Type[] genericArguments = metaType.GetGenericArguments(); 538Type[] genericArguments = baseType.GetGenericArguments(); 560foreach (Type genericArgument in underlyingType.GetGenericArguments())
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
85if (IsFieldOnlyType(iType.GetGenericArguments()[0], ref state) == FieldOnlyResult.FieldOnly)
Microsoft.Extensions.Configuration.Binder (3)
ConfigurationBinder.cs (3)
523bindingPoint.TrySetValue(configValue is null ? null : Array.CreateInstance(type.IsArray ? type.GetElementType()! : type.GetGenericArguments()[0], 0)); 865elementType = type.GetGenericArguments()[0]; 913Type elementType = type.GetGenericArguments()[0];
Microsoft.Extensions.DependencyInjection (4)
ServiceLookup\CallSiteFactory.cs (2)
57Type[] serviceTypeGenericArguments = serviceType.GetGenericArguments(); 58Type[] implementationTypeGenericArguments = implementationType.GetGenericArguments();
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Diagnostics.Abstractions (2)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Http (2)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.Logging.Abstractions (2)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (2)
61Type[] genericArguments = type.GetGenericArguments(); 133offset = type.DeclaringType!.GetGenericArguments().Length;
Microsoft.Extensions.VectorData.Abstractions (1)
ProviderServices\VectorDataStrings.cs (1)
84var genericArgs = string.Join(", ", type.GetGenericArguments().Select(t => t.TypeName()));
Microsoft.JSInterop (3)
Infrastructure\DotNetObjectReferenceJsonConverterFactory.cs (1)
28var instanceType = typeToConvert.GetGenericArguments()[0];
Infrastructure\TaskGenericsUtil.cs (2)
51? taskType.GetGenericArguments()[0] 110var 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.Private.Windows.Core (3)
System\DisposalTracking.cs (1)
72friendlyName += $"<{string.Join(",", type.GetGenericArguments().Select(GetFriendlyTypeName))}>";
System\TypeExtensions.cs (2)
71Type[] genericTypes = type.GetGenericArguments(); 234? type.GetGenericArguments()[0]
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
544Type[] genericArguments = type.GetGenericArguments();
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)
Mono.Cecil (2)
Mono.Cecil\Import.cs (2)
200 ImportGenericParameters (reference, type.GetGenericArguments ()); 275 var arguments = type.GetGenericArguments ();
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2337Type[] typeParams = t.GetGenericArguments(); 2367refTypeParams = refType.GetGenericArguments();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
4889return 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)
1512Type[] typeParameters = interfaceType.GetGenericArguments();
System\Windows\Markup\BamlRecordReader.cs (2)
3746((Type)propertyType.GetGenericArguments()[0]).Name, 3763Type genericType = (Type)propertyType.GetGenericArguments()[0];
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
697return interfaceType.GetGenericArguments()[0];
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
99Type[] 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)
120Queue<Type> genericTypeArguments = new Queue<Type>(type.GetGenericArguments()); 332return type.GetGenericArguments().Length; 338int delclaringTypeGenericArguments = type.DeclaringType.GetGenericArguments().Length; 339int 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)
123Type[] 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)
796Type elemType = enumerableOfTType.GetGenericArguments()[0];
System.Formats.Nrbf (1)
System\Formats\Nrbf\SerializationRecord.cs (1)
124Type[] 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 (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (2)
363elementType = type.GetGenericArguments()[0]; 378elementType = ifaceType.GetGenericArguments()[0];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (3)
368type = type.MakeGenericType(type.GetGenericArguments()); 401type = type.MakeGenericType(type.GetGenericArguments()); 434type = type.MakeGenericType(type.GetGenericArguments());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
292Type[] genericArguments = rootType.GetGenericArguments();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedGenericType.cs (1)
25Type[] genericArguments = UnmodifiedType.GetGenericArguments();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
81public override Type? GetNullableUnderlyingType() => _unmodifiedType.GetNullableUnderlyingType() is not null ? GetGenericArguments()[0] : null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (4)
383Type[] genericArguments = underlyingType.GetGenericArguments(); 463Type[] genericArguments = metaType.GetGenericArguments(); 548Type[] genericArguments = baseType.GetGenericArguments(); 569foreach (Type genericArgument in underlyingType.GetGenericArguments())
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureModifiedType.cs (1)
58public override Type[] GetGenericArguments() => _unmodifiedType.GetGenericArguments();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
16public virtual Type[] GenericTypeParameters => IsGenericTypeDefinition ? GetGenericArguments() : [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
79public virtual Type[] GenericTypeArguments => (IsGenericType && !IsGenericTypeDefinition) ? GetGenericArguments() : [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (2)
69Type[] genericArguments = GetGenericArguments(); 135foreach (Type t in GetGenericArguments())
System\Reflection\Runtime\General\Helpers.cs (1)
36return type.GetGenericArguments();
System.Private.DataContractSerialization (40)
src\runtime\src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (1)
99Type[] genericArgs = type.GetGenericArguments();
System\Runtime\Serialization\ClassDataContract.cs (1)
1347Type[] 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) 1062Type[] genericArgs = type.GetGenericArguments(); 1166itemType = knownInterfaceType.IsGenericType ? knownInterfaceType.GetGenericArguments()[0] : Globals.TypeOfObject; 1210addMethodTypeArray = knownInterfaceType.GetGenericArguments(); 1221addMethodTypeArray = knownInterfaceType.GetGenericArguments(); 1392Type[] paramTypes = type.GetGenericArguments();
System\Runtime\Serialization\DataContract.cs (7)
1174foreach (Type argType in itemType.GetGenericArguments()) 1192type = type.GetGenericArguments()[0]; 1200type = type.GetGenericArguments()[0]; 1512Type[] genParams = type.GetGenericArguments(); 2052DataContract itemDataContract = DataContract.GetDataContract(Globals.TypeOfKeyValuePair.MakeGenericType(collectionDataContract.ItemType.GetGenericArguments())); 2155foreach (Type genericType in t.GetGenericArguments()) 2303: 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.Reflection.Execution (12)
Internal\Reflection\Execution\TypeLoader\ConstraintValidator.cs (2)
98Type[] typeParameters = typeDefinition.GetGenericArguments(); 108Type[] typeArguments = reflectionMethodInfo.DeclaringType.GetGenericArguments();
Internal\Reflection\Execution\TypeLoader\ConstraintValidatorSupport.cs (2)
100Type[] arguments = _underlyingType.GetGenericArguments(); 255Type[] arguments = type.GetGenericArguments();
Internal\Reflection\Execution\TypeLoader\TypeCast.cs (8)
72Type[] pInterfaceInstantiation = pInterfaceType.GetGenericArguments(); 76pTargetInstantiation = pTargetType.GetGenericArguments(); 79pTargetGenericInstantiation = pTargetGenericType.GetGenericArguments(); 122if (TypeParametersAreCompatible(pSourceType.GetGenericArguments(), 123pTargetType.GetGenericArguments(), 124pTargetGenericType.GetGenericArguments(), 390Type[] args1 = pType1.GetGenericArguments(); 391Type[] args2 = pType2.GetGenericArguments();
System.Private.Windows.Core (3)
System\DisposalTracking.cs (1)
72friendlyName += $"<{string.Join(",", type.GetGenericArguments().Select(GetFriendlyTypeName))}>";
System\TypeExtensions.cs (2)
71Type[] genericTypes = type.GetGenericArguments(); 234? 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)
900baseType = type.GetGenericArguments()[0]; 1053Type[] arguments = t.GetGenericArguments();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
981Type[] names = genType.GetGenericArguments(); 982Type[] 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)
2893ilg.Call(varType.GetConstructor(varType.GetGenericArguments())!); 2935Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1555Type[] parameterTypes = type.GetGenericArguments();
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
222return _typeInfo.GetGenericArguments();
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
252foreach (Type genericArg in type.GetGenericArguments())
System.Reflection.Emit (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
292Type[] genericArguments = rootType.GetGenericArguments();
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
744declaringType = declaringType.MakeGenericType(declaringType.GetGenericArguments()); 828!ContainsTypeBuilder(declaringType.GetGenericArguments())) 1098ContainsTypeBuilder(type.GetGenericArguments());
System\Reflection\Emit\SignatureHelper.cs (1)
188Type[] genericArguments = type.GetGenericArguments();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
203(_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.ServiceModel.Primitives (4)
System\ServiceModel\Description\ServiceReflector.cs (1)
911taskTResult = methodReturnType.GetGenericArguments()[0];
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
565return s_typeOfIEnumerableGeneric.MakeGenericType(type.GetGenericArguments());
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
61detailType = faultExceptionOfT.GetGenericArguments()[0];
System\ServiceModel\MessageHeaderT.cs (1)
89return headerParameterType.GetGenericArguments()[0];
System.Text.Json (36)
System\ReflectionExtensions.cs (3)
35return type.IsAssignableFrom(from.GetGenericArguments()[0]); 296Type[] patternArgs = pattern.GetGenericArguments(); 297Type[] targetArgs = target.GetGenericArguments();
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableConverterFactory.cs (1)
27Type elementType = asyncEnumerableInterface.GetGenericArguments()[0];
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (16)
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]; 116elementType = actualTypeToConvert.GetGenericArguments()[0]; 123elementType = actualTypeToConvert.GetGenericArguments()[0]; 129elementType = actualTypeToConvert.GetGenericArguments()[0]; 135elementType = actualTypeToConvert.GetGenericArguments()[0]; 141elementType = actualTypeToConvert.GetGenericArguments()[0]; 147elementType = actualTypeToConvert.GetGenericArguments()[0]; 153elementType = actualTypeToConvert.GetGenericArguments()[0]; 190int 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)
41elementType = typeToConvert.GetGenericArguments()[0]; 46elementType = typeToConvert.GetGenericArguments()[0]; 51elementType = typeToConvert.GetGenericArguments()[0]; 55elementType = typeToConvert.GetGenericArguments()[0]; 59Type[] 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)
126Type[] genericArgs = underlyingIDictionaryType.GetGenericArguments();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (3)
210converterType.GetGenericArguments().Length == typeToConvert.GetGenericArguments().Length) 212converterType = converterType.MakeGenericType(typeToConvert.GetGenericArguments());
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (5)
227baseTypeArgs ??= baseType.GetGenericArguments(); 385Type[] requiredParams = openDerivedType.GetGenericArguments(); 394foreach (Type arg in mb.GetGenericArguments()) 413Type[] matchingBaseArgs = matchingBase.GetGenericArguments(); 505foreach (Type arg in pattern.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)
141foreach (Type typeArg in type.GetGenericArguments())
System\Xaml\XamlType.cs (3)
1266Type[] typeArgs = underlyingType.GetGenericArguments(); 1308Type[] typeArgs = underlyingType.GetGenericArguments(); 1607Type[] types = genericType.GetGenericArguments();