ComponentCase Struct

public readonly struct ComponentCase : IEquatable<ComponentCase>
Implements

Constructors

NameDescription
ComponentCase(string, ComponentValueType?)A case of a ComponentVariantType.

ComponentCase(string, ComponentValueType?)

public ComponentCase(string Name, ComponentValueType? Type)

Parameters

Name string
The name of the case.
Type ComponentValueType?
The type of the payload of the case, or null.

Properties

NameDescription
NameThe name of the case.
TypeThe type of the payload of the case, or null.

The name of the case.

public string Name { get; init; }

Property value

string

The type of the payload of the case, or null.

public ComponentValueType? Type { get; init; }

Property value

ComponentValueType?

Methods

NameDescription
Deconstruct(string, ComponentValueType?)
Equals(ComponentCase)
Equals(object)
GetHashCode()
ToString()

Deconstruct(string, ComponentValueType?)

public void Deconstruct(out string Name, out ComponentValueType? Type)

Parameters

Name string
Type ComponentValueType?

No documentation is available.

Equals overloads

Equals(ComponentCase)

public bool Equals(ComponentCase other)
Parameters
other ComponentCase
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ComponentCase, ComponentCase)
operator !=(ComponentCase, ComponentCase)

operator ==(ComponentCase, ComponentCase)

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

Parameters

left ComponentCase
right ComponentCase

Returns

bool

No documentation is available.

operator !=(ComponentCase, ComponentCase)

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

Parameters

left ComponentCase
right ComponentCase

Returns

bool

No documentation is available.