Struct MessageFieldLayout
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
FieldstringThe CLR field name.
NamestringThe wire name it travels under unless a builder call renames it: its attribute's
Name, else the field's own.TypeMessageFieldTypeIts CLR type.
IsEnumboolWhether the CLR type is an enum (
Typeis then its underlying type).
Properties
Field
The CLR field name.
public string Field { get; init; }
Property Value
IsEnum
Whether the CLR type is an enum (Type is then its underlying type).
public bool IsEnum { get; init; }
Property Value
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
Type
Its CLR type.
public MessageFieldType Type { get; init; }
Property Value
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
FieldstringNamestringTypeMessageFieldTypeIsEnumbool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(MessageFieldLayout)
public bool Equals(MessageFieldLayout other)
Parameters
otherMessageFieldLayout
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MessageFieldLayout, MessageFieldLayout)
public static bool operator ==(MessageFieldLayout left, MessageFieldLayout right)
Parameters
leftMessageFieldLayoutrightMessageFieldLayout
Returns
operator !=(MessageFieldLayout, MessageFieldLayout)
public static bool operator !=(MessageFieldLayout left, MessageFieldLayout right)
Parameters
leftMessageFieldLayoutrightMessageFieldLayout