示例#1
0
 public static IComparable ToObject(this LiteralExpression1 l) =>
 l.Number != null ? l.Number.Value
     : l.Text != null ? l.Text.Value
     : l.Bool != null ? l.Bool.Value
     : (IComparable)null;
示例#2
0
 public static string ToText(this LiteralExpression1 v) =>
 v.Number != null?v.Number.ToText()
     : v.Text != null?v.Text.ToText()
         : v.Bool != null?v.Bool.ToText()
             : v.Null.ToText();