C# Класс LocalizedObject, SmartLocalization

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
keyTypeIdentifier string

Открытые методы

Метод Описание
GetCleanKey ( string key ) : string

Gets the clean key. i.e the key without a type identifier "" etc.

GetCleanKey ( string key, LocalizedObjectType objectType ) : string

Gets the clean key. i.e the key without a type identifier "" etc.

GetFullKey ( string parsedKey ) : string

Gets the full key value with identifiers and everything

GetFullKey ( string parsedKey, LocalizedObjectType objectType ) : string

Gets the full key value with identifiers and everything

GetLocalizedObjectType ( string key ) : LocalizedObjectType

Gets the LocalizedObjectType of the localized object.

Описание методов

GetCleanKey() публичный статический Метод

Gets the clean key. i.e the key without a type identifier "" etc.
public static GetCleanKey ( string key ) : string
key string /// The full key with the type identifier ///
Результат string

GetCleanKey() публичный статический Метод

Gets the clean key. i.e the key without a type identifier "" etc.
public static GetCleanKey ( string key, LocalizedObjectType objectType ) : string
key string /// The key language value ///
objectType LocalizedObjectType /// The LocalizedObjectType of the key ///
Результат string

GetFullKey() публичный Метод

Gets the full key value with identifiers and everything
public GetFullKey ( string parsedKey ) : string
parsedKey string /// Parsed key. (Clean key originally from GetCleanKey) ///
Результат string

GetFullKey() публичный статический Метод

Gets the full key value with identifiers and everything
public static GetFullKey ( string parsedKey, LocalizedObjectType objectType ) : string
parsedKey string /// Parsed key. (Clean key originally from GetCleanKey) ///
objectType LocalizedObjectType
Результат string

GetLocalizedObjectType() публичный статический Метод

Gets the LocalizedObjectType of the localized object.
public static GetLocalizedObjectType ( string key ) : LocalizedObjectType
key string /// The language key from the .resx file ///
Результат LocalizedObjectType

Описание свойств

keyTypeIdentifier публичное статическое свойство

All keys that are not a string will begin with this identifier for example - if the localized object is an audio file, the key will begin with regular text strings will not begin with any type of identifier
public static string keyTypeIdentifier
Результат string