Posted on: 7/30/2014 5:07:38 PM | Views : 371

Many a times I see the class with serialization attribute. Why do we use it?
I know about serialization and deserialization and developed a simple program where the image is serialized and stored in database and deserialized to view the image again.
But here I dont see any deserialization use and still we provide this attribute in class.
public class DataObjects { [System.Serializable] public class CarDetailsData { public int InventoryID; public int AccountID; public string AccountingID; public string InitialImageURL; public int PhotoCount; public int VideoCount; public string DescriptionComments; public int Year; } } DataObjects.CarDetailsData _CarDetailsData = new DataObjects.CarDetailsData(); _CarDetailsData = Inventory.GetInventoryByID(InventoryID); Page.Title = _CarDetailsData.Year ; public static DataObjects.CarDetailsData GetInventoryByID(int InventoryID) { SqlDataReader rea ...

Go to the complete details ...