Struct ModelStreamId
Unique identifier of a IStreamableModel. This allow indirection to the IStreamableModel and keep the link even after the IStreamableModel as been disposed of.
Implements
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: Unity.Cloud.DataStreaming.Runtime.dll
Syntax
public readonly struct ModelStreamId : IEquatable<ModelStreamId>
Methods
Equals(object)
Get if this instance is the same as the given obj.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Equals(ModelStreamId)
Get if two ModelStreamId represent the same.
Declaration
public bool Equals(ModelStreamId other)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelStreamId | other | Compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Compute a hash code for the object.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
- You should not assume that equal hash codes imply object equality.
- You should 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()
Get the string representation of this ModelStreamId.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string result. |
Overrides
Operators
operator ==(ModelStreamId, ModelStreamId)
Get if two ModelStreamId represent the same.
Declaration
public static bool operator ==(ModelStreamId first, ModelStreamId second)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelStreamId | first | Compare with this first instance. |
| ModelStreamId | second | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(ModelStreamId, ModelStreamId)
Get if two ModelStreamId does not represent the same.
Declaration
public static bool operator !=(ModelStreamId first, ModelStreamId second)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelStreamId | first | Compare with this first instance. |
| ModelStreamId | second | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are not the same; false if both instances are the same. |