0

I am confuse in term of lower-case double and upper-case Double.
what is the difference between double/Double... ?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace test
{
     static void Main(string[] args)
        {
            Double a = 100;
            double b = 200;

            Console.Write("{0},{1}",a,b);
        }

    }
}

Both do same work,so why looking different i.e, Double and double...?

Muhammed Naqi
  • 45
  • 1
  • 8

2 Answers2

1

Double is System.Double while double is the C# double data type. They are the same, that means the C# double type maps to System.Double

Relevant documentation:

https://msdn.microsoft.com/en-us/library/system.double(v=vs.110).aspx

https://msdn.microsoft.com/en-us/library/678hzkk9.aspx

Sascha
  • 9,732
  • 3
  • 38
  • 61
0

These are reserved 'keywords' and just maps to the other type (double maps to Double) like said, it is an alias

Sloth
  • 172
  • 8