public static string nextCode(Date d, bool mainCycle)
        {
            string ret = NQuantLibcPINVOKE.ASX_nextCode__SWIG_0(Date.getCPtr(d), mainCycle);

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