In C# what is the default value of the bytes when creating a new byte array?

后端 未结 3 1839
既然无缘
既然无缘 2021-01-18 04:50

The answer to this question has eluded my search.

When I do this:

  var authToken = new byte[16]; 

What is the value of authToken[0

3条回答
  •  一生所求
    2021-01-18 05:14

    The default value is 0

    For more information about default values:

    http://msdn.microsoft.com/en-us/library/83fhsxwc.aspx

提交回复
热议问题