我在小寫雙倍和大寫雙倍期間混淆。
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);
}
}
}
兩者都做同樣的工作,所以爲什麼看起來不同,即雙和雙...?
'雙'即'System.Double'只是'雙'的同義詞 –
[相關文檔](https://msdn.mi crosoft.com/en-us/library/ya5y69ds.aspx)。 –
其他方式,因爲double是C#語言,而System.Double是結構 – Sascha