Struct Identifier<T>
Identifier used to uniquely identify snapshot components.
Namespace: Unity.SnapshotDebugger
Syntax
[Serializable]
public struct Identifier<T> : IEquatable<Identifier<T>>
Type Parameters
Name | Description |
---|---|
T |
Properties
IsValid
Determines if the given snapshot identifier is valid or not.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean | True if the identifier is valid; false otherwise. |
Undefined
An undefined snapshot identifier.
Declaration
public static Identifier<T> Undefined { get; }
Property Value
Type | Description |
---|---|
Identifier<T> |
Methods
Create()
Creates a new snapshot identifier.
Declaration
public static Identifier<T> Create()
Returns
Type | Description |
---|---|
Identifier<T> |
Equals(Object)
Determines whether two snapshot identifiers are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The snapshot identifier to compare against the current snapshot identifier. |
Returns
Type | Description |
---|---|
Boolean | True if the specified snapshot identifier is equal to the current snapshot identifier; otherwise, false. |
Overrides
Equals(Identifier<T>)
Determines whether two snapshot identifiers are equal.
Declaration
public bool Equals(Identifier<T> other)
Parameters
Type | Name | Description |
---|---|---|
Identifier<T> | other | The snapshot identifier to compare against the current snapshot identifier. |
Returns
Type | Description |
---|---|
Boolean | True if the specified snapshot identifier is equal to the current snapshot identifier; otherwise, false. |
GetHashCode()
Override for GetHashCode().
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
ToString()
Override for ToString().
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
Equality(Identifier<T>, Identifier<T>)
Equality operator for snapshot identifiers.
Declaration
public static bool operator ==(Identifier<T> lhs, Identifier<T> rhs)
Parameters
Type | Name | Description |
---|---|---|
Identifier<T> | lhs | |
Identifier<T> | rhs |
Returns
Type | Description |
---|---|
Boolean |
Implicit(Identifier<T> to Int32)
Implicit conversion from a snapshot identifier to an integer.
Declaration
public static implicit operator int (Identifier<T> identity)
Parameters
Type | Name | Description |
---|---|---|
Identifier<T> | identity |
Returns
Type | Description |
---|---|
Int32 |
Inequality(Identifier<T>, Identifier<T>)
Inequality operator for snapshot identifiers.
Declaration
public static bool operator !=(Identifier<T> lhs, Identifier<T> rhs)
Parameters
Type | Name | Description |
---|---|---|
Identifier<T> | lhs | |
Identifier<T> | rhs |
Returns
Type | Description |
---|---|
Boolean |