I have 2 entities (student, course) that I want to serialize & deserialize without using Generic & Reflection.
This would be in a project three layers and using .NET 1.0.
Any ideas?
I do Serialization/Deserialization methods in both class but there is a error in Deserialize error:cannot convert expression type int to return type MyApp_Common.Student
So... manually implement Serialization/Deserialization methods in both class
no its not school homework
I do with .Net Framework 4 and reflection but I want do that with .Net Framework 1 and with out use reflection and Generic
ThanksCode:private string SerializeStudent(Student student) { return student.Id.ToString() + ',' + student.FirstName + ',' + student.LastName; } private Student DeserializeStudent(string[] str) { Student student = new Student(); return student.Id = 5; }




Reply With Quote
