-
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?
-
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.
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks