Wednesday, December 23, 2009

C# serialize, How to erase an object from the file?

I serialized some objects using Binary Formatter in C#. Now I need to erase a certain object from that file. I know where it starts, so I can seek to it's beginning and end. Just I don't know how can I erase that object. Any Suggestions will be very useful.


Regards


DanielC# serialize, How to erase an object from the file?
The Bingo project provides a good example of ';plain vanilla'; serialization. Although the application uses a database to store caller-related data, the File | Open and File | Save options are specifically provided to load/save a single card. To do this, two objects need to be saved: a Game object which holds the game name and user name (which can be used to recreate an empty version of the card) and a Card object, which includes the collection of Rows, each of which, in turn, contains a collection of Cells--each of which has an int Value (the number in the cell) and a bool Selected property (identifying if it has been called). The UML diagram for these classes is shown below:C# serialize, How to erase an object from the file?
Oh sweet, youll listen.





Hammer + Computer =





if its a program you installed, it may be protected in which youll need to stick a disc in if it was by disk. Or you can delete the contents in the file that may not be protected, some file protect the files not whats inside
Try this tutorial,





http://www.youtube.com/watch?v=QzLOLTCLlQk

No comments:

Post a Comment