public override void Handler(MenuCallValues values) { var a = values.GetValue("a", 0, typeof(int)); var b = values.GetValue("b", 0, typeof(int)); System.Console.WriteLine(a + b); }
public override void Handler(MenuCallValues values) { var b1 = values.GetValue("b1", false, typeof(bool)); var b2 = values.GetValue("b2", false, typeof(bool)); System.Console.WriteLine(b1 ^ b2); }
public override void Handler(MenuCallValues values) { var str = values.GetValue("str", (string)null, typeof(string)); System.Console.WriteLine(str.Length); }