Struct SerializableGuid
Struct SerializableGuid
Namespace: Unity.Industrial.Forma.Core.Utils
Syntax
public struct SerializableGuid : IComparable, IComparable<SerializableGuid>, IEquatable<SerializableGuid>
Properties
Value
Gets the value.
Declaration
public readonly 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. |
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
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The |
Returns
Type | Description |
---|---|
Boolean |
|
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. |
ToString()
Returns a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A |
Operators
Implicit(Guid to SerializableGuid)
Performs an implicit conversion from
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
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. |