/// <summary> /// Constructor /// </summary> /// <param name="buffer">Buffer</param> /// <param name="span">Span of file</param> /// <param name="name">Name</param> /// <param name="filename">Filename if possible, otherwise any name</param> /// <param name="tags">Tags, see eg. <see cref="PredefinedBufferFileTags"/></param> protected HexBufferFile(HexBuffer buffer, HexSpan span, string name, string filename, string[] tags) { if (buffer == null) { throw new ArgumentNullException(nameof(buffer)); } if (name == null) { throw new ArgumentNullException(nameof(name)); } if (filename == null) { throw new ArgumentNullException(nameof(filename)); } if (tags == null) { throw new ArgumentNullException(nameof(tags)); } Buffer = buffer; Span = span; Name = name; Filename = filename; Tags = new ReadOnlyCollection <string>(tags.ToArray()); Properties = new VSUTIL.PropertyCollection(); }
/// <summary> /// Constructor /// </summary> protected HexBuffer(HexTags tags) { if (tags == null) { throw new ArgumentNullException(nameof(tags)); } Properties = new VSUTIL.PropertyCollection(); Tags = tags; }
/// <summary> /// Constructor /// </summary> protected HexIntellisenseSession() { Properties = new VSUTIL.PropertyCollection(); }
/// <summary> /// Constructor /// </summary> protected HexView() { Properties = new VSUTIL.PropertyCollection(); }
/// <summary> /// Constructor /// </summary> protected HexBuffer(HexTags tags) { if (tags == null) throw new ArgumentNullException(nameof(tags)); Properties = new VSUTIL.PropertyCollection(); Tags = tags; }