Class Field
Represents a field in a Slice definition.
public class Field : Entity
- Inheritance
-
Field
- Inherited Members
Remarks
Slice fields are used in various contexts, such as structs, enumerations, operation parameters, and return values.
Properties
DataType
Gets the field's type.
public required TypeRef DataType { get; init; }
Property Value
DataTypeIsOptional
Gets a value indicating whether this field's type is optional.
public required bool DataTypeIsOptional { get; init; }
Property Value
IsTagged
Gets a value indicating whether this field is tagged. When true, the Tag property has a value; otherwise, it is null.
public bool IsTagged { get; }
Property Value
Tag
Gets the tag for this field, it is null for non tagged fields.
public required int? Tag { get; init; }
Property Value
- int?