PropertyBag


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: PropertyBag

  1. #1
    Roger Guest

    PropertyBag


    As I began playing with VB.NET, I ran into the problem of not being able to
    use the property bag type. I get an error saying unknown/undclared type.
    Has the property bag being eliminated from VB.NET?

  2. #2
    Bob Butler Guest

    Re: PropertyBag


    "Roger" <Roger_Huysmans@dcf.state.fl.us> wrote in message
    news:3bb3244c$1@news.devx.com...
    >
    > As I began playing with VB.NET, I ran into the problem of not being able

    to
    > use the property bag type. I get an error saying unknown/undclared type.
    > Has the property bag being eliminated from VB.NET?


    Yes. There are several options for replacing it including hash tables,
    array lists, and xml. What you'd use would depend on what you were using
    the property bag for.




  3. #3
    Ian Drake Guest

    Re: PropertyBag


    Roger -

    I actually haven't looked for the property bag, but I'm going to have to
    say that it's gone. You don't need it anymore! Look into implementing ISerializable
    in your objects. This will allow you to write your objects state and choose
    the formatter to do the job(or create your own!). The .NET framwork proveds
    you with the binary and soap formatters, what to use depends on what you
    need to accomplish.

    My biggest complaint about serialization in .NET is reserialition. Reserialization
    is implemented by creating a private or protected constructor with a certain
    argument structure. In the .NET framework this can become a problem when
    extending a class that has the private constuctor for reserialization. You
    can't call the reserialization constructor so you must recreate that functionality
    yourself, which ruins the point of implementation inheritence (as far as
    serialization goes). I think MS is fixing the problem to make all inheritable
    class's reserialization constructor protected, but I haven't looked into
    this matter in a while.

    Hope that helped

    Ian


    "Roger" <Roger_Huysmans@dcf.state.fl.us> wrote:
    >
    >As I began playing with VB.NET, I ran into the problem of not being able

    to
    >use the property bag type. I get an error saying unknown/undclared type.
    >Has the property bag being eliminated from VB.NET?



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center