Class ComponentTagPair
Inheritance
ComponentTagPair
Assembly: GoRogue.dll
Syntax
public sealed class ComponentTagPair : ValueType, IEquatable<ComponentTagPair>, IMatchable<ComponentTagPair>
Constructors
ComponentTagPair(Object, String)
Declaration
public ComponentTagPair(object component, string tag)
Parameters
Fields
Component
Declaration
public readonly object Component
Field Value
Tag
The tag associated with its component.
Declaration
public readonly string Tag
Field Value
Methods
Deconstruct(out Object, out String)
Supports C# Deconstruction syntax.
Declaration
public void Deconstruct(out object component, out string tag)
Parameters
Equals(ComponentTagPair)
True if the given pair has the same component and tag; false otherwise.
Declaration
public bool Equals(ComponentTagPair other)
Parameters
Returns
Equals(Object)
True if the given object is a ComponentTagPair and has the same component and tag; false otherwise.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
FromTuple((Object, String))
Converts the tuple to an equivalent ComponentTagPair.
Declaration
public static ComponentTagPair FromTuple((object, string) tuple)
Parameters
Returns
GetHashCode()
Returns a hash code based on all of the pair's field's.
Declaration
public override int GetHashCode()
Returns
Matches(ComponentTagPair)
True if the given pair has the same component and tag; false otherwise.
Declaration
public bool Matches(ComponentTagPair other)
Parameters
Returns
ToString()
Returns a string representing the component and its tag
Declaration
public override string ToString()
Returns
ToTuple()
Converts the pair to an equivalent tuple.
Declaration
public (object, string) ToTuple()
Returns
Operators
Equality(ComponentTagPair, ComponentTagPair)
True if the given pairs have the same component and tag; false otherwise.
Declaration
public static bool operator ==(ComponentTagPair left, ComponentTagPair right)
Parameters
Returns
Implicit(ComponentTagPair to (Object, String))
Implicitly converts a ComponentTagPair to an equivalent tuple.
Declaration
public static implicit operator (object, string)(ComponentTagPair pair)
Parameters
Returns
Implicit((Object, String) to ComponentTagPair)
Implicitly converts a tuple to its equivalent ComponentTagPair.
Declaration
public static implicit operator ComponentTagPair((object, string) tuple)
Parameters
Returns
Inequality(ComponentTagPair, ComponentTagPair)
True if the given pairs have different components and/or tags; false otherwise.
Declaration
public static bool operator !=(ComponentTagPair left, ComponentTagPair right)
Parameters
Returns
Implements
Extension Methods