Table of Contents

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_type ProtocolProviderType
key string

PersistentStateItemKey(SerializationInfo, StreamingContext)

protected PersistentStateItemKey(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Properties

Key

public string Key { get; }

Property Value

string

ProviderType

public ProtocolProviderType ProviderType { get; }

Property Value

ProtocolProviderType

Methods

Equals(PersistentStateItemKey)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PersistentStateItemKey other)

Parameters

other PersistentStateItemKey

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromClientKey(string)

public static PersistentStateItemKey FromClientKey(string key)

Parameters

key string

Returns

PersistentStateItemKey

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

info SerializationInfo
context StreamingContext

ToClientKey()

public string ToClientKey()

Returns

string

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

x PersistentStateItemKey
y PersistentStateItemKey

Returns

bool

operator !=(PersistentStateItemKey, PersistentStateItemKey)

public static bool operator !=(PersistentStateItemKey x, PersistentStateItemKey y)

Parameters

x PersistentStateItemKey
y PersistentStateItemKey

Returns

bool