Class SortingElement
Represents sorting element.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0Syntax
public class SortingElement
Constructors
SortingElement()
Initializes a new instance of the SortingElement class.
Declaration
public SortingElement()
SortingElement(String, SortingElementType)
Initializes a new instance of the SortingElement class.
Declaration
public SortingElement(string source, SortingElementType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
SortingElementType | type | The type. |
Fields
Empty
Declaration
public static readonly SortingElement Empty
Field Value
Type | Description |
---|---|
SortingElement |
Properties
Source
Gets or sets the source.
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String | The source. |
Type
Gets or sets the type.
Declaration
public SortingElementType Type { get; set; }
Property Value
Type | Description |
---|---|
SortingElementType | The type. |
Methods
Ascending(String)
Ascendings the specified source.
Declaration
public static SortingElement Ascending(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
SortingElement |
Descending(String)
Descendings the specified source.
Declaration
public static SortingElement Descending(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
SortingElement |
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type. System.Object.GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
Overrides
Operators
Equality(SortingElement, SortingElement)
Operator ==s the specified field1.
Declaration
public static bool operator ==(SortingElement field1, SortingElement field2)
Parameters
Type | Name | Description |
---|---|---|
SortingElement | field1 | The field1. |
SortingElement | field2 | The field2. |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(SortingElement, SortingElement)
Operator !=s the specified field1.
Declaration
public static bool operator !=(SortingElement field1, SortingElement field2)
Parameters
Type | Name | Description |
---|---|---|
SortingElement | field1 | The field1. |
SortingElement | field2 | The field2. |
Returns
Type | Description |
---|---|
System.Boolean |