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