question about Serialization
Hi,
I looked the code of chapter 11 of the Wrox-book "Beginning with Asp.Net 2.0" and i have a question about Serialization.
There is a class defined as this:
<Serializable()> _
Public Class CartItem
Private _id As Integer = -1
Private _title As String = String.Empty
etc ...
which represents an item of the shoppingcart.
In web.config, there is this code for defining the profiles:
<profile>
<properties>
<add name="Name" />
...
<add name="Cart" serializeAs="Binary" type="wrox.ShoppingCart"/>
...
My question: what does Serialization / serializeAs="Binary" exactly do? What are the adantages of coding this?
Thanks
H.
|