예제 #1
0
 /// <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();
 }
예제 #2
0
파일: HexBuffer.cs 프로젝트: idkwim/dnSpy
 /// <summary>
 /// Constructor
 /// </summary>
 protected HexBuffer(HexTags tags)
 {
     if (tags == null)
     {
         throw new ArgumentNullException(nameof(tags));
     }
     Properties = new VSUTIL.PropertyCollection();
     Tags       = tags;
 }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 protected HexIntellisenseSession()
 {
     Properties = new VSUTIL.PropertyCollection();
 }
예제 #4
0
		/// <summary>
		/// Constructor
		/// </summary>
		protected HexIntellisenseSession() {
			Properties = new VSUTIL.PropertyCollection();
		}
예제 #5
0
파일: HexView.cs 프로젝트: pashav15/pashav
 /// <summary>
 /// Constructor
 /// </summary>
 protected HexView()
 {
     Properties = new VSUTIL.PropertyCollection();
 }
예제 #6
0
		/// <summary>
		/// Constructor
		/// </summary>
		protected HexView() {
			Properties = new VSUTIL.PropertyCollection();
		}
예제 #7
0
파일: HexBuffer.cs 프로젝트: 0xd4d/dnSpy
		/// <summary>
		/// Constructor
		/// </summary>
		protected HexBuffer(HexTags tags) {
			if (tags == null)
				throw new ArgumentNullException(nameof(tags));
			Properties = new VSUTIL.PropertyCollection();
			Tags = tags;
		}