Re: Dynamic properties ?
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 03/26/04
- Next message: Stephen Brooker: "Re: Question regarding "else if""
- Previous message: Jon Skeet [C# MVP]: "Re: Dynamic type casting at run time"
- In reply to: C# newbie: "Dynamic properties ?"
- Next in thread: Jon Skeet [C# MVP]: "Re: Dynamic properties ?"
- Reply: Jon Skeet [C# MVP]: "Re: Dynamic properties ?"
- Reply: C# newbie: "Re: Dynamic properties ?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 26 Mar 2004 05:08:44 -0000
C# newbie <ittraineeforever@yahoo.com> wrote:
> I've a program which runs some XPath queries to retreive information within
> an xml file. it does keep track of every path (in case of finding the item).
> Along with this it should capture attribute information of every visited
> node during a seek procedure.
> I've used an ArrayList and a class which has properties for node name and
> its realted informationi. Regarding to xml structure there is a cateogry and
> ID so we know we have a pattern for it but for number of attributes is
> vary. Some nodes may have 6 attributes and some none and ...
> Is there any way to have dynamic properties in a class ? !! or any solution
> ?
I suggest you use a map such as a Hashtable.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: Stephen Brooker: "Re: Question regarding "else if""
- Previous message: Jon Skeet [C# MVP]: "Re: Dynamic type casting at run time"
- In reply to: C# newbie: "Dynamic properties ?"
- Next in thread: Jon Skeet [C# MVP]: "Re: Dynamic properties ?"
- Reply: Jon Skeet [C# MVP]: "Re: Dynamic properties ?"
- Reply: C# newbie: "Re: Dynamic properties ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|