C# FAQ: Does CSharp check array bounds

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:FAQs
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.


See also


Personal tools