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; }
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; }
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; }