question about serialization

B

Bjorn

Hi,

I read a lot of things about Serialization but i'm not sure i understand
what it is really doing.
Anyway, i use in my application the 'Profiles' which must contain things
like name of customers, address... and a kind of shoppinglist.
Therefore i created a class with "<Serializable()" and i created the
profiles in web.config and added "serializeAs="Binary", just like i read in
some doc. Everything works perfectly.

Now i removed "<Serializable()" from the class file and
"serializeAs="Binary" from web.config and it still works.

Could somebody explain me the difference between the two situations: with
"<Serializable()" and without "<Serializable()" ? What does that do and is
it recommended?

Thanks in advance
Bjorn


in App_Code:
<Serializable()> _
Public Class myClass
Private _name As string
.....
end class


in web.config:
<profile>
<properties>
...........
<add shoppinglist="eComm" serializeAs="Binary" .../>
</properties>
</profile>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top