示例#1
0
        /// <summary>
        /// Use default language
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public override LocId Register(string value)
        {
            var locId = new LocId
            {
                Id = mId
            };

            CurrentMapping[locId] = value;

            mId++;

            return(locId);
        }
示例#2
0
 public override string Resolve(LocId locId)
 {
     return(CurrentMapping[locId]);
 }
示例#3
0
        public override void Register(Enum langEnum, LocId locId, string value)
        {
            var result = mMappings.GetOrAdd(langEnum, Factory);

            result[locId] = value;
        }
示例#4
0
 public string this[LocId locId]
 {
     get => mDict[locId];