C# Class Sage.Configuration.LocaleInfo

Contains information about a language locale.
Inheritance: IXmlConvertible
ファイルを表示 Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
FormatAsLongDate ( System.DateTime date ) : string

Formats a date as a long date for this LocaleInfo.

FormatAsLongDate ( string dateString ) : string

Formats the specified dateString as a long date for this LocaleInfo.

FormatAsShortDate ( System.DateTime date ) : string

Formats the specified date as a short date string for this LocaleInfo.

FormatAsShortDate ( string dateString ) : string

Formats the specified dateString to a short date for this LocaleInfo.

IsSubsetOf ( string locale ) : bool

Determines whether this locale is a subset of the specified locale.

LocaleInfo ( ) : System

Initializes a new instance of the LocaleInfo class.

LocaleInfo ( XmlElement infoElement ) : System

Initializes a new instance of the LocaleInfo class, using the specified infoElement.

Parse ( XmlElement element ) : void
ToString ( ) : string
ToXml ( XmlDocument document ) : XmlElement

Method Details

FormatAsLongDate() public method

Formats a date as a long date for this LocaleInfo.
public FormatAsLongDate ( System.DateTime date ) : string
date System.DateTime The date to convert to string.
return string

FormatAsLongDate() public method

Formats the specified dateString as a long date for this LocaleInfo.
/// If the specified is null or empty. ///
public FormatAsLongDate ( string dateString ) : string
dateString string The string to format.
return string

FormatAsShortDate() public method

Formats the specified date as a short date string for this LocaleInfo.
public FormatAsShortDate ( System.DateTime date ) : string
date System.DateTime The date to convert to string.
return string

FormatAsShortDate() public method

Formats the specified dateString to a short date for this LocaleInfo.
/// If the specified is null or empty. ///
public FormatAsShortDate ( string dateString ) : string
dateString string The string to format.
return string

IsSubsetOf() public method

Determines whether this locale is a subset of the specified locale.
/// If the specified is null or empty. ///
public IsSubsetOf ( string locale ) : bool
locale string The locale to check against.
return bool

LocaleInfo() public method

Initializes a new instance of the LocaleInfo class.
public LocaleInfo ( ) : System
return System

LocaleInfo() public method

Initializes a new instance of the LocaleInfo class, using the specified infoElement.
/// is null. ///
public LocaleInfo ( XmlElement infoElement ) : System
infoElement System.Xml.XmlElement The that contains the information about the locale.
return System

Parse() public method

public Parse ( XmlElement element ) : void
element System.Xml.XmlElement
return void

ToString() public method

public ToString ( ) : string
return string

ToXml() public method

public ToXml ( XmlDocument document ) : XmlElement
document System.Xml.XmlDocument
return System.Xml.XmlElement