Struct MarketId

Implements
System.IEquatable<MarketId>
System.IComparable<MarketId>
System.IComparable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Mediachase.Commerce
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public struct MarketId : IEquatable<MarketId>, IComparable<MarketId>, IComparable

Constructors

MarketId(String)

Declaration
public MarketId(string marketId)
Parameters
Type Name Description
System.String marketId

Fields

Default

Declaration
public static readonly MarketId Default
Field Value
Type Description
MarketId

Empty

Declaration
public static readonly MarketId Empty
Field Value
Type Description
MarketId

Properties

Value

Declaration
public string Value { get; }
Property Value
Type Description
System.String

Methods

CompareTo(MarketId)

Declaration
public int CompareTo(MarketId other)
Parameters
Type Name Description
MarketId other
Returns
Type Description
System.Int32

Equals(MarketId)

Declaration
public bool Equals(MarketId other)
Parameters
Type Name Description
MarketId other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

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(MarketId, MarketId)

Declaration
public static bool operator ==(MarketId left, MarketId right)
Parameters
Type Name Description
MarketId left
MarketId right
Returns
Type Description
System.Boolean

Implicit(MarketId to String)

Declaration
[Obsolete("Use the Value property to fetch the ID value as a string. Will remain at least until November 2016.")]
public static implicit operator string (MarketId marketId)
Parameters
Type Name Description
MarketId marketId
Returns
Type Description
System.String

Implicit(String to MarketId)

Declaration
public static implicit operator MarketId(string value)
Parameters
Type Name Description
System.String value
Returns
Type Description
MarketId

Inequality(MarketId, MarketId)

Declaration
public static bool operator !=(MarketId left, MarketId right)
Parameters
Type Name Description
MarketId left
MarketId right
Returns
Type Description
System.Boolean

Explicit Interface Implementations

IComparable.CompareTo(Object)

Declaration
int IComparable.CompareTo(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Int32

Implements

System.IEquatable<T>
System.IComparable<T>
System.IComparable