38 references to HasElementType
Microsoft.CSharp (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\ComEventsMethod.cs (1)
82&& pi.ParameterType.HasElementType
Microsoft.Extensions.AI.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (1)
568if (underlyingType.HasElementType)
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
650if (valueType == null || !valueType.HasElementType)
Mono.Cecil (1)
Mono.Cecil\Import.cs (1)
292 return type.HasElementType
System.Private.CoreLib (17)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeMetadataGenerator.cs (2)
452if (!arrayTypeInfo.DataType.HasElementType) 724if (!arrayTypeInfo.DataType.HasElementType
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
251if (!type.HasElementType) 270while (rootType.HasElementType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedHasElementType.cs (1)
19Debug.Assert(unmodifiedType.HasElementType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (2)
36else if (unmodifiedType.HasElementType) 196protected override bool HasElementTypeImpl() => _unmodifiedType.HasElementType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (1)
576if (underlyingType.HasElementType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureModifiedType.cs (2)
44internal override SignatureType? ElementType => HasElementType ? new SignatureModifiedType(_unmodifiedType.GetElementType()!, [], []) : null; 49protected override bool HasElementTypeImpl() => _unmodifiedType.HasElementType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
164protected override bool HasElementTypeImpl() => typeImpl.HasElementType;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
688if (callConv.HasElementType ||
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (3)
46if (HasElementType) 84while (rootElementType.HasElementType) 102if (HasElementType)
System\ActivatorImplementation.cs (1)
162while (elementType.HasElementType)
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (1)
308if (type.HasElementType || type.IsGenericParameter || type.IsFunctionPointer)
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
2169if (t.HasElementType)
System.Private.Reflection.Execution (1)
Internal\Reflection\Execution\TypeLoader\ConstraintValidator.cs (1)
78if (actualArg.IsSystemVoid() || (actualArg.HasElementType && !actualArg.IsArray) || actualArg.IsFunctionPointer)
System.Private.Xml (1)
System\Xml\Serialization\Compilation.cs (1)
455else if (t.HasElementType)
System.Reflection.Context (3)
System\Reflection\Context\CollectionServices.cs (1)
41if (arrayType.HasElementType || arrayType.IsValueType || arrayType.ContainsGenericParameters)
System\Reflection\Context\CustomReflectionContext.cs (1)
210if (type.IsInterface || type.IsGenericParameter || type.HasElementType)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
413return _typeInfo.HasElementType;
System.Reflection.Emit (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (2)
251if (!type.HasElementType) 270while (rootType.HasElementType)
System\Reflection\Emit\EnumBuilderImpl.cs (1)
92protected override bool HasElementTypeImpl() => _typeBuilder.HasElementType;
System\Reflection\Emit\ModuleBuilderImpl.cs (2)
698if (type.HasElementType || type.IsGenericParameter || 1101if (type.HasElementType)
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
40Debug.Assert(!HasElementType);
System\Reflection\TypeLoading\Types\RoModifiedHasElementType.cs (1)
18Debug.Assert(unmodifiedType.HasElementType);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
46else if (unmodifiedType.HasElementType)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
319while (attributedType.HasElementType)
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
497if (pattern.HasElementType)
System.Xaml (1)
System\Xaml\Schema\TypeReflector.cs (1)
149else if (type.HasElementType)