C# Class HandCoded.Finance.Period

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

Public Properties

Property Type Description
DAY Period
MONTH Period
TERM Period
WEEK Period
YEAR Period

Public Methods

Method 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

Method Description
Period ( string code ) : System

Constructs a Period with given code.

Method Details

Equals() public method

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

ForCode() public static method

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

GetHashCode() public method

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

ToString() public method

Returns the value of the code.
public ToString ( ) : string
return string

Property Details

DAY public_oe static_oe property

A Period instance representing a day.
public static Period,HandCoded.Finance DAY
return Period

MONTH public_oe static_oe property

A Period instance representing a month.
public static Period,HandCoded.Finance MONTH
return Period

TERM public_oe static_oe property

A Period instance representing a term.
public static Period,HandCoded.Finance TERM
return Period

WEEK public_oe static_oe property

A Period instance representing a week.
public static Period,HandCoded.Finance WEEK
return Period

YEAR public_oe static_oe property

A Period instance representing a year.
public static Period,HandCoded.Finance YEAR
return Period