Clear() public méthode

Clear this instance and Destroys it
public Clear ( ) : void
Résultat void
Exemple #1
0
    /// <summary>
    /// Loads the language file and returns the RAW values
    /// </summary>
    public static Dictionary <string, string> LoadLanguageFile(string languageCode)
    {
        LanguageManager thisManager = LanguageManager.Instance;

        thisManager.ChangeLanguage(languageCode);
        Dictionary <string, string> languageDataBase = thisManager.GetTextDataBase();

        thisManager.Clear();

        return(languageDataBase);
    }
Exemple #2
0
    /// <summary>
    /// Loads the parsed language file.(without the type identifiers)
    /// </summary>
    /// <returns>
    /// The parsed language file.
    /// </returns>
    /// <param name='languageCode'>
    /// Language code.
    /// </param>
    public static Dictionary <string, LocalizedObject> LoadParsedLanguageFile(string languageCode)
    {
        LanguageManager thisManager = LanguageManager.Instance;

        thisManager.ChangeLanguage(languageCode);
        Dictionary <string, LocalizedObject> languageDataBase = thisManager.GetLocalizedObjectDataBase();

        thisManager.Clear();

        return(languageDataBase);
    }