C# 클래스 Onism.Cldr.CldrData

파일 보기 프로젝트 열기: pgolebiowski/onism-cldr

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
GetValue ( string path, CldrLocale locale ) : string

Traverses the CLDR tree using a path and gets the value associated with the specified locale.

LoadFromFile ( string path ) : CldrData

Creates a new CldrData instance from a binary file.

LoadFromStream ( Stream source ) : CldrData

Creates a new CldrData instance from a binary stream.

WriteToFile ( string path ) : void

Writes a binary representation of this CldrData to the specified file.

WriteToStream ( Stream destination ) : void

Writes a binary representation of this CldrData to the supplied stream.

메소드 상세

GetValue() 공개 메소드

Traverses the CLDR tree using a path and gets the value associated with the specified locale.
public GetValue ( string path, CldrLocale locale ) : string
path string
locale CldrLocale
리턴 string

LoadFromFile() 공개 정적인 메소드

Creates a new CldrData instance from a binary file.
public static LoadFromFile ( string path ) : CldrData
path string A relative or absolute path to the file where data is to be deserialized from.
리턴 CldrData

LoadFromStream() 공개 정적인 메소드

Creates a new CldrData instance from a binary stream.
public static LoadFromStream ( Stream source ) : CldrData
source System.IO.Stream The binary stream to apply to the new instance (cannot be null).
리턴 CldrData

WriteToFile() 공개 메소드

Writes a binary representation of this CldrData to the specified file.
public WriteToFile ( string path ) : void
path string A relative or absolute path to the file where data is to be serialized to.
리턴 void

WriteToStream() 공개 메소드

Writes a binary representation of this CldrData to the supplied stream.
public WriteToStream ( Stream destination ) : void
destination System.IO.Stream The destination stream to write to.
리턴 void