Table of Contents

Class Field

Namespace
ZeroC.Slice.Symbols
Assembly
ZeroC.Slice.Symbols.dll

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

TypeRef

DataTypeIsOptional

Gets a value indicating whether this field's type is optional.

public required bool DataTypeIsOptional { get; init; }

Property Value

bool

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

bool

Tag

Gets the tag for this field, it is null for non tagged fields.

public required int? Tag { get; init; }

Property Value

int?