Struct MetricId
Wrapper around an enum with the Metric
Implements
Inherited Members
Namespace: Unity.Multiplayer.Tools.NetStats
Assembly: Unity.Multiplayer.Tools.NetStats.dll
Syntax
[Serializable]
public struct MetricId : IEquatable<MetricId>
Methods
Create<T>(T)
Static function to create a Metric
Declaration
public static MetricId Create<T>(T value) where T : unmanaged, Enum
Parameters
Type | Name | Description |
---|---|---|
T | value | Enum value for the metric. |
Returns
Type Parameters
Name | Description |
---|---|
T | An enum with the Metric |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object.. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Equals(MetricId)
Declaration
public bool Equals(MetricId other)
Parameters
Returns
Type | Description |
---|---|
bool | true if the specified Metric |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Returns a string that represents the current Metric
Declaration
public override string ToString()
Returns
Overrides
Operators
implicit operator string(MetricId)
Implicit operator to convert to string.
Declaration
public static implicit operator string(MetricId metricId)