public static Date nextDate(string asxCode, bool mainCycle, Date referenceDate)
        {
            Date ret = new Date(NQuantLibcPINVOKE.ASX_nextDate__SWIG_3(asxCode, mainCycle, Date.getCPtr(referenceDate)), true);

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