コード例 #1
0
        private void AsDouble()
        {
            double a = 100.002;
            double b = 201.0105;

            Console.WriteLine(DynamicMath.Sum(a, b));
            Console.WriteLine(DynamicMath.Difference(a, b));
        }
コード例 #2
0
        private void AsInt()
        {
            int a = 100;
            int b = 201;

            Console.WriteLine(DynamicMath.Sum(a, b));
            Console.WriteLine(DynamicMath.Difference(a, b));
        }
コード例 #3
0
        private void AsString()
        {
            string a = "Hello";
            string b = "!!!!";

            Console.WriteLine(DynamicMath.Sum(a, b));
            //Console.WriteLine(DynamicMath.Difference(a, b)); //throws RuntimeBinderException
        }