Esempio n. 1
0
        public override bool Equals(object obj)
        {
            ProvidedDocumentInformation info = obj as ProvidedDocumentInformation;

            if (info == null)
            {
                return(false);
            }
            return(this.fileName == info.fileName &&
                   this.textEditor == info.textEditor);
        }
		public SearchResultMatch(ProvidedDocumentInformation providedDocumentInformation, int offset, int length)
		{
			if (providedDocumentInformation == null)
				throw new ArgumentNullException("providedDocumentInformation");
			if (length < 0)
				throw new ArgumentOutOfRangeException("length");
			if (offset < 0)
				throw new ArgumentOutOfRangeException("offset");
			this.providedDocumentInformation = providedDocumentInformation;
			this.offset   = offset;
			this.length   = length;
		}
Esempio n. 3
0
 public SearchResultMatch(ProvidedDocumentInformation providedDocumentInformation, int offset, int length)
 {
     if (providedDocumentInformation == null)
     {
         throw new ArgumentNullException("providedDocumentInformation");
     }
     if (length < 0)
     {
         throw new ArgumentOutOfRangeException("length");
     }
     if (offset < 0)
     {
         throw new ArgumentOutOfRangeException("offset");
     }
     this.providedDocumentInformation = providedDocumentInformation;
     this.offset = offset;
     this.length = length;
 }
Esempio n. 4
0
 public SimpleSearchResultMatch(ProvidedDocumentInformation providedDocumentInformation, string displayText, Location position)
     : base(providedDocumentInformation, 0, 0)
 {
     this.position    = position;
     this.displayText = displayText;
 }
		public SimpleSearchResultMatch(ProvidedDocumentInformation providedDocumentInformation, string displayText, Location position)
			: base(providedDocumentInformation, 0, 0)
		{
			this.position = position;
			this.displayText = displayText;
		}