ITypeSymbol.IsRecord Property

Definition

For source symbols, true if the type is a record. For metadata symbols, true if the type is a record and a reference type.

public bool IsRecord { get; }
member this.IsRecord : bool
Public ReadOnly Property IsRecord As Boolean

Property Value

Remarks

Returns false for record structs in metadata since they don't have any distinctive marker.

Applies to