public void LoadFromDB() { foreach (var t in RuleTemplateDB.RuleTemplateSet.Keys) { RuleAsString r = new RuleAsString(t); Add(r); } }
public void Add(RuleAsString rule) { //var str = string.Format("{0} {1}", annotation == null ? "" : annotation.ToString(), atom); if (table.Contains(rule)) { return; } table.Add(rule); }
public override bool Equals(object obj) { RuleAsString that = obj as RuleAsString; return(this.preSet.SetEquals(that.preSet) && this.postSet.SetEquals(that.postSet)); }