Class PersistentStateItemKey
- Namespace
- Sportradar.LiveData.Sdk.Common.Types
- Assembly
- Sportradar.LiveData.Sdk.dll
[Serializable]
public class PersistentStateItemKey : IEquatable<PersistentStateItemKey>
- Inheritance
-
PersistentStateItemKey
- Implements
- Inherited Members
Constructors
PersistentStateItemKey(ProtocolProviderType, string)
public PersistentStateItemKey(ProtocolProviderType provider_type, string key)
Parameters
provider_typeProtocolProviderTypekeystring
PersistentStateItemKey(SerializationInfo, StreamingContext)
protected PersistentStateItemKey(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
Properties
Key
public string Key { get; }
Property Value
ProviderType
public ProtocolProviderType ProviderType { get; }
Property Value
Methods
Equals(PersistentStateItemKey)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PersistentStateItemKey other)
Parameters
otherPersistentStateItemKeyAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
FromClientKey(string)
public static PersistentStateItemKey FromClientKey(string key)
Parameters
keystring
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetObjectData(SerializationInfo, StreamingContext)
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
ToClientKey()
public string ToClientKey()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Remarks
Can be used for diagnostics purposes.
Operators
operator ==(PersistentStateItemKey, PersistentStateItemKey)
public static bool operator ==(PersistentStateItemKey x, PersistentStateItemKey y)
Parameters
Returns
operator !=(PersistentStateItemKey, PersistentStateItemKey)
public static bool operator !=(PersistentStateItemKey x, PersistentStateItemKey y)