示例#1
0
        public static byte[] GenNotConvertTextList(NotConvertTextSet notConvertSet)
        {
            StringBuilder sb = new StringBuilder();

            foreach (var e in notConvertSet.SortedEntry)
            {
                sb.Append(e.Key).Append('|').Append(e.Value).Append('\n');
            }
            return(System.Text.Encoding.UTF8.GetBytes(sb.ToString()));
        }
示例#2
0
 public string GetText(TextTable stringTable, NotConvertTextSet notConvertKeys)
 {
     if (stringTable != null)
     {
         if (stringTable.TryGetText(Key, out var text))
         {
             return(text);
         }
         else if (notConvertKeys != null)
         {
             notConvertKeys.Add(Key, _rawValue);
         }
     }
     return(_rawValue);
 }