Пример #1
0
        private static CodedText Map(this DV_CODED_TEXT model)
        {
            var codedText = new CodedText(model.value)
            {
                DefiningCode = model.defining_code.Map(),
                Formatting   = model.formatting
            };

            if (model.language != null)
            {
                codedText.Language = model.language.Map();
            }
            if (model.encoding != null)
            {
                codedText.Encoding = model.encoding.Map();
            }
            if (model.hyperlink != null)
            {
                codedText.Hyperlink = new Uri(model.hyperlink.value.ToString());
            }
            foreach (TERM_MAPPING mapping in model.mappings)
            {
                codedText.Mappings.Add(mapping.Map());
            }
            return(codedText);
        }
Пример #2
0
 public override void Dispose()
 {
     if (!base._isDisposed)
     {
         _value = null;
         GC.SuppressFinalize(this);
         base._isDisposed = !base._isDisposed;
     }
 }
Пример #3
0
        public IORDBulder AddSymbol(CodedText symbol)
        {
            _value.Symbol = symbol;

            return(this);
        }
Пример #4
0
 public void DefaultPropertiesShouldWork()
 {
     var text = new CodedText("");
 }
Пример #5
0
        public ICodedTextBuilder Clear()
        {
            _value = base.ResetValue <CodedText>();

            return(this);
        }