Base:
property
IsValueType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsValueType
Implemented interface member:
property
IsValueType
Microsoft.CodeAnalysis.Symbols.ITypeSymbolInternal.IsValueType
23 references to IsValueType
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (1)
7091if (!typeParameter.HasConstructorConstraint && !typeParameter.IsValueType)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2876if (source.IsValueType)
Symbols\ConstraintsHelper.cs (1)
1503return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ? ConstructorConstraintError.None : ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType;
Symbols\MemberSignatureComparer.cs (1)
703if (!typeParameter1.IsValueType)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
675if (typeParameter.IsReferenceType || typeParameter.IsValueType)
Symbols\TypeSymbolExtensions.cs (2)
79return !typeParameter.IsValueType && !(typeParameter.IsReferenceType && typeParameter.IsNotNullable == true); 93return type is TypeParameterSymbol { IsValueType: false, IsNotNullable: false };
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (1)
2197Assert.True(m.IsValueType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\GenericConstraintsTests.cs (9)
452Assert.False(typeParameter.IsValueType); 470Assert.True(typeParameter.IsValueType); 489Assert.False(typeParameter.IsValueType); 508Assert.False(typeParameter.IsValueType); 2120Assert.True(typeParameter.IsValueType); 2145Assert.True(typeParameter.IsValueType); 2166Assert.True(typeParameter.IsValueType); 2196Assert.True(typeParameter.IsValueType); 2948Assert.True(typeParameter.IsValueType);
Semantics\NullableReferenceTypesTests.cs (5)
100540Assert.True(t1.IsValueType); 100548Assert.True(t2.IsValueType); 150582Assert.True(comp.GetMember<MethodSymbol>("B1.F").TypeParameters[0].IsValueType); 150583Assert.False(comp.GetMember<MethodSymbol>("B2.F").TypeParameters[0].IsValueType); 150584Assert.True(comp.GetMember<MethodSymbol>("B3.F").TypeParameters[0].IsValueType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5722Assert.Equal(typeParameter.IsValueType, isValueType);