public override bool Equals(object obj) { FastSort s = obj as FastSort; if (s == null) return false; return s.ToString().Equals(this.ToString()); }
internal override void CheckSort(FastSort expected_sort) { if (!expected_sort.Equals(sort)) throw new FastParseException(token.Location, string.Format("wrong sort '{0}', expecting '{1}'", sort, expected_sort)); }