Struct PlatformId
Represents a Stone Platform ID.
Implements
System.IEquatable<PlatformId>
System.IEquatable<System.String>
System.IComparable<System.String>
System.IComparable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Snowflake.Model.Game
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public struct PlatformId : IEquatable<PlatformId>, IEquatable<string>, IComparable<string>, IComparable
Methods
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Int32 |
CompareTo(String)
Declaration
public int CompareTo(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Equals(PlatformId)
Declaration
public bool Equals(PlatformId other)
Parameters
| Type | Name | Description |
|---|---|---|
| PlatformId | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
Equals(String)
Declaration
public bool Equals(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.ValueType.ToString()
Operators
Equality(PlatformId, PlatformId)
Declaration
public static bool operator ==(PlatformId x, PlatformId y)
Parameters
| Type | Name | Description |
|---|---|---|
| PlatformId | x | |
| PlatformId | y |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implicit(PlatformId to String)
Implicitly converts from a PlatformId to a string.
Declaration
public static implicit operator string (PlatformId id)
Parameters
| Type | Name | Description |
|---|---|---|
| PlatformId | id | The PlatformId to convert as a string. |
Returns
| Type | Description |
|---|---|
| System.String | The PlatformId as a string. |
Implicit(String to PlatformId)
Implicitly converts from a System.String to a PlatformId
Declaration
public static implicit operator PlatformId(string other)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | other | The string to convert. |
Returns
| Type | Description |
|---|---|
| PlatformId | The PlatformId the string represents. |
Inequality(PlatformId, PlatformId)
Declaration
public static bool operator !=(PlatformId x, PlatformId y)
Parameters
| Type | Name | Description |
|---|---|---|
| PlatformId | x | |
| PlatformId | y |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
System.IEquatable<T>
System.IEquatable<T>
System.IComparable<T>
System.IComparable