public static bool isASXdate(Date d, bool mainCycle)
        {
            bool ret = NQuantLibcPINVOKE.ASX_isASXdate__SWIG_0(Date.getCPtr(d), mainCycle);

            if (NQuantLibcPINVOKE.SWIGPendingException.Pending)
            {
                throw NQuantLibcPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }