Example #1
0
 /// <summary>
 /// 執行此類別的初始工作。由於載入完整的注音字根表會用掉較多資源,
 /// 因此提供此函式,讓呼叫端在適當時機呼叫此函式。
 /// </summary>
 public static void Initialize()
 {
     if (!m_Initialized)
     {
         m_ZhuyinTable = new CharZhuyinTable();
         m_ZhuyinTable.Load();
         m_Initialized = true;
     }
 }
Example #2
0
 /// <summary>
 /// 釋放先前配置的資源。
 /// </summary>
 public static void Release()
 {
     m_ZhuyinTable.Clear();
     m_ZhuyinTable = null;
 }