C# Класс Onism.Cldr.CldrData

Показать файл Открыть проект

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