public override string ToSource() { return(string.Format ( "({0}.Is{1}Than({2}))", FirstPart.ToSource(), ConditionText, SecondPart.ToSource() )); }
public override string ToSource() { string firstPartStr = FirstPart?.ToSource(); string secondPartStr = SecondPart?.ToSource(); if (!(FirstPart is GString)) { firstPartStr += ".ToText()"; } if (!(SecondPart is GString)) { secondPartStr += ".ToText()"; } return(string.Format("({0} + {1})", firstPartStr, secondPartStr)); }
public override string ToSource() { string firstPartStr = FirstPart?.ToSource(); string secondPartStr = SecondPart?.ToSource(); if (!(FirstPart is GNumber)) { firstPartStr += ".ToNumber()"; } if (!(SecondPart is GNumber)) { secondPartStr += ".ToNumber()"; } return(string.Format("({0} {1} {2})", firstPartStr, OperatorText, secondPartStr)); }
public override string ToSource() { string firstPartStr = FirstPart?.ToSource(); string secondPartStr = SecondPart?.ToSource(); if (!(FirstPart is GLogic)) { firstPartStr += ".ToBool()"; } if (!(SecondPart is GLogic)) { secondPartStr += ".ToBool()"; } return(string.Format ( "({0} {1} {2})", firstPartStr, GateText, secondPartStr )); }