public void Add(OffsetElement2 element) { if (element == null) { throw new ArgumentNullException(nameof(element)); } _elements.Add(element); }
public void Write(UInt16[] content, OffsetElement2 source) { if (content == null) { throw new ArgumentNullException(nameof(content)); } _segments.Add(new BinarySegment2(content, source)); }
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; }