private void AsDouble() { double a = 100.002; double b = 201.0105; Console.WriteLine(DynamicMath.Sum(a, b)); Console.WriteLine(DynamicMath.Difference(a, b)); }
private void AsInt() { int a = 100; int b = 201; Console.WriteLine(DynamicMath.Sum(a, b)); Console.WriteLine(DynamicMath.Difference(a, b)); }
private void AsString() { string a = "Hello"; string b = "!!!!"; Console.WriteLine(DynamicMath.Sum(a, b)); //Console.WriteLine(DynamicMath.Difference(a, b)); //throws RuntimeBinderException }