private static void AssertNumber(string functionName, CTObject arg) { if (arg.GetType() != typeof(CTNumber)) { throw new TypeError(functionName, CTNumber.TypeName, arg.DisplayType()); } }
public NotAProcedureError(CTObject obj) : base(string.Format("object of type {0} is not a procedure\ngiven: {1}", obj.DisplayType(), obj)) { }