This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Either you can ignore the warning or you can create an identical local array, copy all values over then return the new array. You only want to do it if you really want to restrict user from manipulating your array (internal state) indirectly (i.e. not via your object method, but to get the array, and manipulate its values hence your internal array changes accordingly).
“Everything should be as simple as it is, but not simpler.” Albert Einstein
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com