private IFilter ParseIDFilter() { IFilter selector = null; if (CurrentToken.TokenType == SelectorTokenType.Hash) { selector = new IDFilter(CurrentToken.Text.Substring(1)); currentPosition++; } return(selector); }
public override bool Equals(object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } else { IDFilter t = (IDFilter)obj; return(id.Equals(t.id)); } }
private IFilter ParseIDFilter() { IFilter selector = null; if (CurrentToken.TokenType == SelectorTokenType.Hash) { selector = new IDFilter(CurrentToken.Text.Substring(1)); currentPosition++; } return selector; }