Table of Contents

Struct MessageFieldLayout

Namespace
Typhon.Protocol
Assembly
Typhon.Protocol.dll

One public instance field of a ReplicatedMessageAttribute type, as the generator saw it.

public readonly struct MessageFieldLayout : IEquatable<MessageFieldLayout>
Implements
Inherited Members

Constructors

MessageFieldLayout(string, string, MessageFieldType, bool)

One public instance field of a ReplicatedMessageAttribute type, as the generator saw it.

public MessageFieldLayout(string Field, string Name, MessageFieldType Type, bool IsEnum)

Parameters

Field string

The CLR field name.

Name string

The wire name it travels under unless a builder call renames it: its attribute's Name, else the field's own.

Type MessageFieldType

Its CLR type.

IsEnum bool

Whether the CLR type is an enum (Type is then its underlying type).

Properties

Field

The CLR field name.

public string Field { get; init; }

Property Value

string

IsEnum

Whether the CLR type is an enum (Type is then its underlying type).

public bool IsEnum { get; init; }

Property Value

bool

Name

The wire name it travels under unless a builder call renames it: its attribute's Name, else the field's own.

public string Name { get; init; }

Property Value

string

Type

Its CLR type.

public MessageFieldType Type { get; init; }

Property Value

MessageFieldType

Methods

Deconstruct(out string, out string, out MessageFieldType, out bool)

public void Deconstruct(out string Field, out string Name, out MessageFieldType Type, out bool IsEnum)

Parameters

Field string
Name string
Type MessageFieldType
IsEnum bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(MessageFieldLayout)

public bool Equals(MessageFieldLayout other)

Parameters

other MessageFieldLayout

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MessageFieldLayout, MessageFieldLayout)

public static bool operator ==(MessageFieldLayout left, MessageFieldLayout right)

Parameters

left MessageFieldLayout
right MessageFieldLayout

Returns

bool

operator !=(MessageFieldLayout, MessageFieldLayout)

public static bool operator !=(MessageFieldLayout left, MessageFieldLayout right)

Parameters

left MessageFieldLayout
right MessageFieldLayout

Returns

bool