C# Класс BudgetAnalyser.Engine.Budget.BudgetBucket

Наследование: IModelValidate, INotifyPropertyChanged, IComparable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
BudgetBucket ( ) : System

Initializes a new instance of the BudgetBucket class.

BudgetBucket ( string code, string name ) : System

Initializes a new instance of the BudgetBucket class.

Приватные методы

Метод Описание
ArgumentNullException ( nameof obj1 ) : System

Описание методов

BudgetBucket() защищенный Метод

Initializes a new instance of the BudgetBucket class.
protected BudgetBucket ( ) : System
Результат System

BudgetBucket() защищенный Метод

Initializes a new instance of the BudgetBucket class.
///
protected BudgetBucket ( string code, string name ) : System
code string The code.
name string The name.
Результат System

CompareTo() публичный Метод

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
Результат int

Equals() публичный Метод

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.
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

Validate() публичный Метод

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.
Результат bool

operator() публичный статический Метод

Implements the operator ==. Delegates to Equals.
public static operator ( ) : bool
Результат bool