Struct TransformationId
Holds information about a transformation identifier.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public readonly struct TransformationId
Constructors
TransformationId(Guid)
Returns a TransformationId using a Guid.
Declaration
public TransformationId(Guid value)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | value | The GUID that represents the Transformation identifier |
TransformationId(string)
Returns a TransformationId using a string.
Declaration
public TransformationId(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | A string that represents the Transformation identifier |
Fields
None
Returns the value of an identifier that represents an invalid dataset Id.
Declaration
public static readonly TransformationId None
Field Value
| Type | Description |
|---|---|
| TransformationId |
Methods
Equals(object)
Checks if obj is an TransformationId instance, and then compares the TransformationId value with the value of this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Compares values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances have the same values; false otherwise. |
Overrides
Equals(TransformationId)
Compares the values of TransformationId objects.
Declaration
public bool Equals(TransformationId other)
Parameters
| Type | Name | Description |
|---|---|---|
| TransformationId | other |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
GetHashCode()
Computes a hash code for the object.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
- Important: Do not assume that equal hash codes imply object equality.
- Important: Never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.
ToString()
Gets the string for this TransformationId.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string result. |
Overrides
Operators
operator ==(TransformationId, TransformationId)
Checks whether two TransformationId are equal.
Declaration
public static bool operator ==(TransformationId left, TransformationId right)
Parameters
| Type | Name | Description |
|---|---|---|
| TransformationId | left | Compare with this first instance. |
| TransformationId | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
explicit operator string(TransformationId)
Explicitly casts a TransformationId to a string.
Declaration
public static explicit operator string(TransformationId dId)
Parameters
| Type | Name | Description |
|---|---|---|
| TransformationId | dId | Object to cast |
Returns
| Type | Description |
|---|---|
| string | The resulting string |
operator !=(TransformationId, TransformationId)
Checks whether two TransformationId aren't equal.
Declaration
public static bool operator !=(TransformationId left, TransformationId right)
Parameters
| Type | Name | Description |
|---|---|---|
| TransformationId | left | Compare with this first instance. |
| TransformationId | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are not the same; false if both instances are the same. |