Base:
property
IsValueType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsValueType
Implemented interface member:
property
IsValueType
Microsoft.CodeAnalysis.Symbols.ITypeSymbolInternal.IsValueType
1 override of IsValueType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\ErrorTypeSymbol.cs (1)
101
public sealed override bool
IsValueType
27 references to IsValueType
Microsoft.CodeAnalysis.CSharp (14)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
3680
&& parameters.ParameterTypes[argumentPosition].Type is NamedTypeSymbol { IsInterpolatedStringHandlerType: true,
IsValueType
: true })
BoundTree\Constructors.cs (1)
61
!fieldSymbol.ContainingType.
IsValueType
||
CodeGen\EmitExpression.cs (2)
176
if (thisType.
IsValueType
)
1737
if (callKind == CallKind.ConstrainedCallVirt && actualMethodTargetedByTheCall.ContainingType.
IsValueType
)
Emitter\Model\NamedTypeReference.cs (1)
73
return UnderlyingNamedType.
IsValueType
;
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
46
get { return AdaptedNamedTypeSymbol.
IsValueType
; }
FlowAnalysis\NullableWalker.cs (1)
962
&& (!method.ContainingType.
IsValueType
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
911
Debug.Assert(parameters[i].Type is NamedTypeSymbol { IsInterpolatedStringHandlerType: true,
IsValueType
: true });
Lowering\SpillSequenceSpiller.cs (1)
420
var receiver = Spill(builder, field.ReceiverOpt, fieldSymbol.ContainingType.
IsValueType
? refKind : RefKind.None);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
216
case BoundFieldAccess { FieldSymbol: { IsStatic: false, ContainingType: {
IsValueType
: true } }, ReceiverOpt: BoundExpression receiver }:
Lowering\SyntheticBoundNodeFactory.cs (1)
1308
if (!method.ContainingType.
IsValueType
|| !Microsoft.CodeAnalysis.CSharp.CodeGen.CodeGenerator.MayUseCallForStructMethod(method))
Symbols\MemberSymbolExtensions.cs (2)
406
if (initializerSyntax.ArgumentList.Arguments.Count > 0 || !type.
IsValueType
)
455
method.ContainingType?.
IsValueType
== true &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
830
if (this.
IsValueType
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (2)
391
Assert.True(point.
IsValueType
);
481
Assert.True(point.
IsValueType
);
Semantics\RecordTests.cs (1)
118
Assert.False(point.
IsValueType
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\Metadata\MetadataTypeTests.cs (4)
85
Assert.False(class1.
IsValueType
);
135
Assert.False(type1.
IsValueType
);
183
Assert.False(type1.
IsValueType
);
233
Assert.True(type1.
IsValueType
);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (1)
470
Assert.True(classLocalType.
IsValueType
);
Symbols\Source\DelegateTests.cs (1)
132
Assert.False(v.
IsValueType
);
Symbols\Source\MethodTests.cs (3)
1172
Assert.True(type1.
IsValueType
);
1208
Assert.False(type2.
IsValueType
);
1265
Assert.False(type1.
IsValueType
);
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
86
Assert.Equal(symbol.
IsValueType
, specialType.IsValueType());