Exemplo n.º 1
0
        protected void AnalyseOneClass(string strClassDefine)
        {
            MacroProcess(ref strClassDefine);
            string strResult  = "";
            string strOneFunc = "";
            int    nBegin     = 0;
            int    nEnd       = -1;

            nBegin = strClassDefine.IndexOf("virtual", 0);

            while (nBegin != -1)
            {
                KTransferOneFunction myTransfer = new KTransferOneFunction();
                nEnd       = strClassDefine.IndexOf(';', nBegin);
                strOneFunc = strClassDefine.Substring(nBegin, nEnd - nBegin);
                myTransfer.ReInit(strOneFunc);
                string strFuncName = myTransfer.GetFuncName();
                string strOldParas = GetOldParas(strFuncName);
                myTransfer.SetOldParas(strOldParas);
                listTransferFuncs.Add(myTransfer);
                nBegin = strClassDefine.IndexOf("virtual", nEnd);
            }
        }
Exemplo n.º 2
0
Arquivo: Form1.cs Projeto: viticm/pap2
 protected void AnalyseOneClass(string strClassDefine)
 {
     MacroProcess(ref strClassDefine);
     string strResult = "";
     string strOneFunc = "";
     int nBegin = 0;
     int nEnd = -1;
     
     nBegin = strClassDefine.IndexOf("virtual", 0); 
     
     while (nBegin != -1)
     {
         KTransferOneFunction myTransfer = new KTransferOneFunction();
         nEnd = strClassDefine.IndexOf(';', nBegin);
         strOneFunc = strClassDefine.Substring(nBegin, nEnd - nBegin);
         myTransfer.ReInit(strOneFunc);
         string strFuncName = myTransfer.GetFuncName();
         string strOldParas = GetOldParas(strFuncName);
         myTransfer.SetOldParas(strOldParas);
         listTransferFuncs.Add(myTransfer);                
         nBegin = strClassDefine.IndexOf("virtual", nEnd);
     }
 }