C# Class HandCoded.Finance.Period

Period defines a set of time units (day, week, month, etc.)
Afficher le fichier Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Méthodes publiques

Свойство Type Description
DAY Period
MONTH Period
TERM Period
WEEK Period
YEAR Period

Méthodes publiques

Méthode Description
Equals ( object other ) : bool

Determines if the value of this instance equals that of another.

ForCode ( string code ) : Period

Attempts to locate a Period instance having the given code value.

GetHashCode ( ) : int

Determines the hash value for this instance based on the value of the code string.

ToString ( ) : string

Returns the value of the code.

Private Methods

Méthode Description
Period ( string code ) : System

Constructs a Period with given code.

Method Details

Equals() public méthode

Determines if the value of this instance equals that of another.
public Equals ( object other ) : bool
other object The to compare with.
Résultat bool

ForCode() public static méthode

Attempts to locate a Period instance having the given code value.
public static ForCode ( string code ) : Period
code string The required code value.
Résultat Period

GetHashCode() public méthode

Determines the hash value for this instance based on the value of the code string.
public GetHashCode ( ) : int
Résultat int

ToString() public méthode

Returns the value of the code.
public ToString ( ) : string
Résultat string

Property Details

DAY public_oe static_oe property

A Period instance representing a day.
public static Period,HandCoded.Finance DAY
Résultat Period

MONTH public_oe static_oe property

A Period instance representing a month.
public static Period,HandCoded.Finance MONTH
Résultat Period

TERM public_oe static_oe property

A Period instance representing a term.
public static Period,HandCoded.Finance TERM
Résultat Period

WEEK public_oe static_oe property

A Period instance representing a week.
public static Period,HandCoded.Finance WEEK
Résultat Period

YEAR public_oe static_oe property

A Period instance representing a year.
public static Period,HandCoded.Finance YEAR
Résultat Period