You are here:

C#/c#: Array: IsReadOnly Property

Advertisement


Question
Hi,

I have heard, we cannot set an array as read only. Then, why should we use IsReadOnly property.

Please help me.

Thanks a lot.

Answer
Hi there,

An array cannot be read only, so IsReadOnly property will always return False. That's because IsReadOnly is implemented by IList interface and it is used for collections.

For further information check msdn.microsoft.com

Hope that helps,

Murat

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Murat Mehmet

Expertise

I can help with questions about desktop and web programming in C#, including SOAP, XML, database managing, custom controls, security etc.

Experience

I have been developing web and especially desktop applications in C# and VB.Net for almost 5 years. My programming life has begun with VB6 long time ago, so its about 8 years that I am in this business.

Organizations
Was in R & D for 2 years in a popular Turkish technology website: cyber-warrior.com

Education/Credentials
2011 Computer Engineering graduation in University of Trakia in Turkey.

©2016 About.com. All rights reserved.