コード例 #1
0
        private string GetExpression(string tcLine)
        {
            tcLine = ((ConvertCSharp2VB.CSharpToVBConverter) this.oParent).HandleCasting(tcLine);
            //lcStr = this.ExtractBlock(lcStr,"(", ")");
            //lcStr = ReplaceManager.GetSingledSpacedString(lcStr);
            //return ReplaceManager.HandleExpression(lcStr);

            return(ReplaceManager.HandleExpression(this.ExtractBlock(tcLine, "(", ")")));
        }
コード例 #2
0
        private void GetCondition(string tcLine)
        {
            tcLine = ((ConvertCSharp2VB.CSharpToVBConverter) this.oParent).HandleCasting(tcLine);
            string lcStr = this.ExtractBlock(tcLine, "(", ")");

            lcStr = ReplaceManager.GetSingledSpacedString(lcStr);

            this.ExpresionToken = ReplaceManager.HandleExpression(lcStr);
        }
コード例 #3
0
        public string GetBlock(string tcCaseLine, string tcCaseBlock)
        {
            this.GetBlankToken(tcCaseLine);
            this.CaseExpressionToken = ReplaceManager.HandleExpression(this.ExtractBlock(tcCaseLine, "case", ":"));

            if (tcCaseBlock.IndexOf("{") >= 0)
            {
                this.CaseBlock = this.ExtractBlock(tcCaseBlock, "{", "}");
            }
            else
            {
                this.CaseBlock = this.ExtractBlock(tcCaseBlock, ":", ";");
            }

            return(this.Execute());
        }