private static void CheckLogicArg(QilNode arg) { Debug.Assert(arg != null, "Argulent shouldn't be null"); Debug.Assert(arg.XmlType.TypeCode == XmlTypeCode.Boolean && arg.XmlType.IsSingleton, "The operand must be boolean-typed" ); }