I have a problem with understanding a deserialization code....Can anyone help with this one:
public clsSerial DeserializeFriend() //why clsSerial is done here ??
clsSerial temp = new clsSerial();
BinaryFormatter format = new BinaryFormatter();
FileStream myStream = new FileStream(“Test.bin”,
temp = (clsSerial)format.Deserialize(myStream);// and why (clsSerial)is added here
catch (Exception ex)
string buff = ex.Message;