C# FAQ: Does CSharp check array bounds
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:FAQs |
| edit |
[edit]
Does C# check array bounds? (array bounds checking)
Yes, C# does check array bounds. An out of bounds condition is indicated by an IndexOutOfRange exception.
[edit]
See also
- Does C# check array bounds? (array bounds checking)
- Does C# support jagged arrays?
- Should calling
Initialize()on a reference type array fill it with objects?