C# Class Xaye.Fred.Extensions

Utility methods.
ファイルを表示 Open project: cuda/Xaye.Fred

Public Methods

Method Description
ToFredDate ( this date ) : System.DateTime

Converts a FRED formatted date string to a DateTime.

ToFredDateString ( this date ) : string

Converts a string to a FRED formated date string.

ToFredDateTime ( this date ) : System.DateTime

Converts a FRED formatted date and time string to a DateTime.

ToFrequency ( this frequency ) : Frequency

Creates a string to a Frequency.

ToString ( AggregationMethod method ) : string

Converts a AggregationMethod to a string.

ToString ( SortOrder order ) : string

Converts a SortOrder to a string.

ToString ( Source orderBy ) : string

Converts a Source.OrderBy to a string.

ToString ( this transformation ) : string

Converts a Transformation to a string.

Method Details

ToFredDate() public static method

Converts a FRED formatted date string to a DateTime.
public static ToFredDate ( this date ) : System.DateTime
date this The date string to create the date from.
return System.DateTime

ToFredDateString() public static method

Converts a string to a FRED formated date string.
public static ToFredDateString ( this date ) : string
date this The date to convert.
return string

ToFredDateTime() public static method

Converts a FRED formatted date and time string to a DateTime.
public static ToFredDateTime ( this date ) : System.DateTime
date this The date and time string to create the date from.
return System.DateTime

ToFrequency() public static method

Creates a string to a Frequency.
public static ToFrequency ( this frequency ) : Frequency
frequency this The string to convert.
return Frequency

ToString() public static method

Converts a AggregationMethod to a string.
public static ToString ( AggregationMethod method ) : string
method AggregationMethod The aggregation method to convert.
return string

ToString() public static method

Converts a SortOrder to a string.
public static ToString ( SortOrder order ) : string
order SortOrder The order to convert.
return string

ToString() public static method

Converts a Source.OrderBy to a string.
public static ToString ( Source orderBy ) : string
orderBy Source The Source.OrderBy to convert.
return string

ToString() public static method

Converts a Transformation to a string.
public static ToString ( this transformation ) : string
transformation this The transformation to convert.
return string