[Mono-list] what structure should I use
Jonel Rienton
jonel at rientongroup.com
Wed Feb 1 17:42:56 EST 2006
You're in the right direction. The Node class will work, however, instead of
using an Array I would use a strongly-typed class that inherits the
CollectionBase class for the collection of Nodes(maybe call it
NodeCollection). Another class that reads the file would also be good. I
would also use a controller class that will glue all this classes together.
When you say store, do you mean persist to a relational db?
Regards,
Jonel Rienton
--
I know not english well, but I know 9 computer languages.
Pinoy Ako!
-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Malte Dreschert
Sent: Wednesday, February 01, 2006 4:12 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] what structure should I use
Hi,
I have a slight problem with a program I want to write.
I want to read a textfile that contains the description of a hierarchy.
The hierarchy has nodes, which hae certain Attributes like name, parentnode,
translation and orientation. What is the best way to store this kind of
information? I was wondering if I can create a class (ie.
"node"), that has the Attributes as Members. I want to create an Object of
the class for each node in the file with the correct attributes and store
these Objects in an array. But I don't know if this is possible and a smart
thing to do.
Perhaps someone can give me a hint on how to do such a thing effectivley.
Thanks for your help.
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006
More information about the Mono-list
mailing list