示例#1
0
        public void Add(OffsetElement2 element)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            _elements.Add(element);
        }
示例#2
0
        public void Write(UInt16[] content, OffsetElement2 source)
        {
            if (content == null)
            {
                throw new ArgumentNullException(nameof(content));
            }

            _segments.Add(new BinarySegment2(content, source));
        }
示例#3
0
 public BinarySegment2(UInt16[] content, OffsetElement2 source)
 {
     if (content == null)
     {
         throw new ArgumentNullException(nameof(content));
     }
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     Content = content;
     Source  = source;
 }