Esempio n. 1
0
        public string MakeAParameter(string paramA)
        {
            paramA = paramA.Trim().Replace(" As ", " ");
            string[] pPieces = paramA.Split(' ');
            int      pLen    = pPieces.Length;

            if (pPieces[0].Trim() == "ByRef")
            {
                ApiUtility.GetCSharpStyle(ref pPieces[pLen - 1], true);
                return("ref " + pPieces[pLen - 1] + " " + pPieces[pLen - 2]);
            }

            if (!ApiUtility.GetCSharpStyle(ref pPieces[pLen - 1]))
            {
                pPieces[pLen - 1] = ApiUtility.CSHP_MARSHAL_EXP_5 + pPieces[pLen - 1];
            }

            ApiUtility.GetCSharpStyle(ref pPieces[pLen - 1], true);
            return(pPieces[pLen - 1] + " " + pPieces[pLen - 2]);
        }