Open sandboxFocus

Enum RecordKind

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum RecordKind
Remarks

This enumeration names what an author chooses when introducing a record. It is not reported by the code model: a record read from source is a class or a struct according to TypeKind, and IsRecord states that it is a record.

Fields

Name Description
Class

The record is a reference type, declared as record or record class. This is the default value of the enumeration and the form that IntroduceRecord(IAdviser<INamespaceOrNamedType>, string, RecordKind, OverrideStrategy, Action<IRecordBuilder>?) introduces by default.

Struct

The record is a value type, declared as record struct.