Using Property to get array element in C#

.net-2.0, arrays, c#, properties

Solution

If I understand correctly what you are asking, You can use an indexer. Indexers (C# Programming Guide)

Edit: Now that I've read the others, maybe you can expose a property that returns a copy of the array?

Problem

Is there a way to get a specific element (based in index) from a string array using Property. I prefer using public property in place of making the string array public. I am working on C#.NET 2.0 Regards

Original source