Example #1
0
        public MText(MText other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            _value = other.Value;
        }
Example #2
0
        internal void ConvertTextToElement()
        {
            var s = content as string;

            if (!string.IsNullOrEmpty(s))
            {
                var t = new MText(s)
                {
                    Parent = this
                };

                t.next  = t;
                content = t;
            }
        }