Exemplo n.º 1
0
 private static void ResolveLiteral(
     object sender,
     ResolveLiteralEventArgs e)
 {
     if (GetValueForLiteral(e.Value, out string value))
     {
         e.Variable.Set(value);
         e.Success = true;
     }
 }
Exemplo n.º 2
0
 private void ResolveLiteral(
     object sender,
     ResolveLiteralEventArgs e)
 {
     if (string.Equals(
             e.Value,
             "SomeValue",
             StringComparison.InvariantCultureIgnoreCase))
     {
         e.Variable.Set(Math.PI);
         e.Success = true;
     }
 }