public string?ToJson() { if (Ret == null) { return(null); } if (IsPainText) { return(Ret.ToString()); } if (StatusCode == 200) { return(Ret.ToDtoJson()); } return(JsonSerializer.Serialize(Ret, new JsonSerializerOptions { WriteIndented = true, IgnoreNullValues = true })); }
public void SetRetToStatus() { Status.Add(Const.StatusResultCode, Ret.ToString()); Status.Add(Const.StatusResultDesc, ResultDesc ?? ""); }
public override String ToString() { return ("DoCondExp(\n" + Cond.ToString() + ",\n" + Ret.ToString() + ")\n"); }