Beginning C# 7 Hands-On:Advanced Language Features
上QQ阅读APP看书,第一时间看更新

Operating an array

Now, in the next stage, another thing that you can do is operate an array. For example, you can make an array of doubles. We'll call it dubsArray, and this will be a new double array. To do this, enter the following on the next line:

double[] dubsArray = new double[] { 1, 2, 3, 4, 5 };