|
-
October 3rd, 2010, 09:14 AM
#1
indexers and arrays
Hi
I have a class which has several members which are arrays of doubles. I am trying to figure out the best way to access these arrays.
Is it best to use properties:
private static double[] _dcount = new double[20];
public static double [] _dcount
{
get { return _dcount; }
set { _dcount = value; }
}
or to write accessor functions ?
I thought about using indexers, but if I am reading my books correctly they won't work if there are several arrays of the same type in the class.
Any help would be appreciated
cheers
simon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|