public static string Paren(this ILogicGate gate) { string s = gate.ToString(); return((s.Length > 1) ? ("(" + s + ")") : s); }