C# Class BudgetAnalyser.Engine.Budget.BudgetBucket

Inheritance: IModelValidate, INotifyPropertyChanged, IComparable
Afficher le fichier Open project: Benrnz/BudgetAnalyser Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
ArgumentNullException ( nameof obj1 ) : System

Method Details

BudgetBucket() protected méthode

Initializes a new instance of the BudgetBucket class.
protected BudgetBucket ( ) : System
Résultat System

BudgetBucket() protected méthode

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

CompareTo() public méthode

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
Résultat int

Equals() public méthode

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.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Validate() public méthode

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.
Résultat bool

operator() public static méthode

Implements the operator ==. Delegates to Equals.
public static operator ( ) : bool
Résultat bool