Пример #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];