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, "(", ")"))); }
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); }
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()); }