G
Gerben
Hello,
I'm getting an error when I try to serialize a class in my project. Hope
someone can help me out:
Shared assembly:
[Serializable]
public abstract class Person
{
public int PersonData;
}
Project1
[Serializable]
public class Student : Person
{
}
Person person1 = new Student();
Project2:
I like to serialize person1 (using .net remoting) so I can use that object
in this project. Project2 only knows the person class, but that is enough
since I only need to access PersonData and nothing else. When I try this i'm
getting a serializable exception that says that project2 cannot find
Project1. But I don't want to include project1 or the student class. Is
there a way to solve this / can I tell Student to only serialize the Person
data in some way?
greets,
Gerben.
I'm getting an error when I try to serialize a class in my project. Hope
someone can help me out:
Shared assembly:
[Serializable]
public abstract class Person
{
public int PersonData;
}
Project1
[Serializable]
public class Student : Person
{
}
Person person1 = new Student();
Project2:
I like to serialize person1 (using .net remoting) so I can use that object
in this project. Project2 only knows the person class, but that is enough
since I only need to access PersonData and nothing else. When I try this i'm
getting a serializable exception that says that project2 cannot find
Project1. But I don't want to include project1 or the student class. Is
there a way to solve this / can I tell Student to only serialize the Person
data in some way?
greets,
Gerben.