Struct SerializableGuid
Struct SerializableGuid
Namespace: UnityEngine.Industrial.Configuring.Core
Syntax
[Serializable]
public struct SerializableGuid : IComparable, IComparable<SerializableGuid>, IEquatable<SerializableGuid>
Properties
Value
Gets the value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
String | The value. |
Methods
CompareTo(Object)
Compares to.
Declaration
public int CompareTo(object value)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value. |
Returns
Type | Description |
---|---|
Int32 | System.Int32. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Must be SerializableGuid |
CompareTo(SerializableGuid)
Compares to.
Declaration
public int CompareTo(SerializableGuid other)
Parameters
Type | Name | Description |
---|---|---|
SerializableGuid | other | The other. |
Returns
Type | Description |
---|---|
Int32 | System.Int32. |
Equals(Object)
Determines whether the specified Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
Equals(SerializableGuid)
Equalses the specified other.
Declaration
public bool Equals(SerializableGuid other)
Parameters
Type | Name | Description |
---|---|---|
SerializableGuid | other | The other. |
Returns
Type | Description |
---|---|
Boolean |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Returns a String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |
Overrides
Operators
Implicit(Guid to SerializableGuid)
Performs an implicit conversion from Guid to SerializableGuid.
Declaration
public static implicit operator SerializableGuid(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
Guid | guid | The unique identifier. |
Returns
Type | Description |
---|---|
SerializableGuid | The result of the conversion. |
Implicit(SerializableGuid to Guid)
Performs an implicit conversion from SerializableGuid to Guid.
Declaration
public static implicit operator Guid(SerializableGuid serializableGuid)
Parameters
Type | Name | Description |
---|---|---|
SerializableGuid | serializableGuid | The serializable unique identifier. |
Returns
Type | Description |
---|---|
Guid | The result of the conversion. |