Table of Contents

Class LanguageBasedKey<TKey>

Namespace
Dynamicweb.Ecommerce.International
Assembly
Dynamicweb.Ecommerce.dll

The generic class to use as cache key in the services for language based entities.

public class LanguageBasedKey<TKey> : IEquatable<LanguageBasedKey<TKey>> where TKey : class, IEquatable<TKey>

Type Parameters

TKey
Inheritance
LanguageBasedKey<TKey>
Implements
Inherited Members

Constructors

LanguageBasedKey(TKey, string)

Initializes a new instance of the object.

public LanguageBasedKey(TKey key, string languageId)

Parameters

key TKey

The Key.

languageId string

The LanguageId.

Properties

Key

The ID.

public TKey Key { get; }

Property Value

TKey

LanguageId

The language Id.

public string LanguageId { get; }

Property Value

string

Methods

Equals(LanguageBasedKey<TKey>)

Determines whether the specified LanguageBasedKey<TKey> is equal to this instance.

public bool Equals(LanguageBasedKey<TKey> other)

Parameters

other LanguageBasedKey<TKey>

The LanguageBasedKey<TKey> to compare with this instance.

Returns

bool

true if the specified LanguageBasedKey<TKey> is equal to this instance; otherwise, false.

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object other)

Parameters

other object

The object to compare with this instance.

Returns

bool

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

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

ToString()

Returns a string representation of this instance.

public override string ToString()

Returns

string
To top