I tried to code my own serialization dll. The code itself works as expected. Now I want to put the entire code into a dll file.
My problem is the following: how do I tell the dll WHICH class it should serialize?
Example:
public class serialize
{
public static void doSerialization(class serializableClass, string path, string fileName)
{
do code here...
}
}
Ok. I used class serializableClass
, you know? Type + Name. Sure It won't work like this. I was afraid it wouldn't. But how do I do it, though? I want the dll to serialize the class settings.cs
which is in my main program... I hope the question is clear. Otherwise just ask ;)
Thanks for Your help. Best Regards.