C# Class Habanero.Faces.Base.ComboPair

Holds a key-value pair that provides a single item for a ComboBox. The key is the string value shown and the value holds the underlying object, such as a BusinessObject or specific Guid
Datei anzeigen Open project: Chillisoft/habanero.faces Class Usage Examples

Public Methods

Method Description
ComboPair ( string key, object value ) : System

The pair of values shown in the Combo Box (i.e. the Key, Value Pair) ComboPair

Equals ( object obj ) : bool

Indicates whether this ComboPair has exactly the same key and value as another

GetHashCode ( ) : int

Returns the hashcode of the key and value

ToString ( ) : string

Returns the key value being displayed

operator ( ) : System.Boolean

Indicates if two ComboPairs differ in either their keys or values

operator ( ) : bool

Indicates if two ComboPairs have the same key and value

Method Details

ComboPair() public method

The pair of values shown in the Combo Box (i.e. the Key, Value Pair) ComboPair
public ComboPair ( string key, object value ) : System
key string
value object
return System

Equals() public method

Indicates whether this ComboPair has exactly the same key and value as another
public Equals ( object obj ) : bool
obj object The ComboPair to compare with
return bool

GetHashCode() public method

Returns the hashcode of the key and value
public GetHashCode ( ) : int
return int

ToString() public method

Returns the key value being displayed
public ToString ( ) : string
return string

operator() public static method

Indicates if two ComboPairs differ in either their keys or values
public static operator ( ) : System.Boolean
return System.Boolean

operator() public static method

Indicates if two ComboPairs have the same key and value
public static operator ( ) : bool
return bool