|
-
January 9th, 2009, 05:13 PM
#3
Re: 2-D Array
 Originally Posted by toraj58
changing your structure into 4 generic lists and coupling them with indices would be an offer.
I agree that using a dynamic class (such as List<T>) would be a good way to go, but would almost definately go in the opposite direction
Code:
class ARecord
{
public string Part1 {get; set;}
public string Part2 {get; set;}
public string Part3 {get; set;}
}
class MyData : List<ARecord> {}
MUCH easier to work with...
Code:
var foo = from myData where p.Part1.Contains("Foo") select p;
ps: I think the word you meant was either "option" or "alternative."..
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
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
|