I am developing a client server application in C#.

I am sending from my server to client an object of `Student` type which I serialize on the server side and deserialize on client side. The serialization and deserialization are as follows :

Code:
// server side serialization.
    Student s1 = new Student("Chuck","Noris");
    BinaryFormatter binaryFormatter = new BinaryFormatter();
...