C# Class BudgetAnalyser.Engine.Budget.BudgetBucket

Inheritance: IModelValidate, INotifyPropertyChanged, IComparable
Show file Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
CompareTo ( object obj ) : int

Compares two BudgetBucket instances and returns an int. If the value is less than zero the first operand is less than the second. Comparisions are performed using the Code property which uniquely identifies a bucket.

Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance. Comparisons are performed using the Code Property.

GetHashCode ( ) : int

Returns a hash code for this instance.

Validate ( [ validationMessages ) : bool

Validate the instance and populate any warnings and errors into the validationMessages string builder.

operator ( ) : bool

Implements the operator ==. Delegates to Equals.

Protected Methods

Method Description
BudgetBucket ( ) : System

Initializes a new instance of the BudgetBucket class.

BudgetBucket ( string code, string name ) : System

Initializes a new instance of the BudgetBucket class.

Private Methods

Method Description
ArgumentNullException ( nameof obj1 ) : System

Method Details

BudgetBucket() protected method

Initializes a new instance of the BudgetBucket class.
protected BudgetBucket ( ) : System
return System

BudgetBucket() protected method

Initializes a new instance of the BudgetBucket class.
///
protected BudgetBucket ( string code, string name ) : System
code string The code.
name string The name.
return System

CompareTo() public method

Compares two BudgetBucket instances and returns an int. If the value is less than zero the first operand is less than the second. Comparisions are performed using the Code property which uniquely identifies a bucket.
public CompareTo ( object obj ) : int
obj object
return int

Equals() public method

Determines whether the specified System.Object, is equal to this instance. Comparisons are performed using the Code Property.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Validate() public method

Validate the instance and populate any warnings and errors into the validationMessages string builder.
public Validate ( [ validationMessages ) : bool
validationMessages [ A non-null string builder that will be appended to for any messages.
return bool

operator() public static method

Implements the operator ==. Delegates to Equals.
public static operator ( ) : bool
return bool