public virtual object Visit(CogniPy.CNL.DL.NumberRestriction e) { using (isKindOf.set("R")) e.R.accept(this); using (isKindOf.set("C")) e.C.accept(this); return(e); }
public object Visit(CogniPy.CNL.DL.NumberRestriction e) { StringBuilder sb = new StringBuilder(); using (isKindOf.set(EntityKind.Role)) { sb.Append(e.Kind + e.N.ToString() + " " + brack(e, e.R) + "."); } using (isKindOf.set(EntityKind.Concept)) { sb.Append(brack(e, e.C)); } return(sb.ToString()); }