Let's say I make a new class
That has serialize and deserialize within itself working just fine.
But then I try to add it to PlayerMobile and serialize / deserialize it there.
Since the new class isn't inheriting another class, how would I do this?
NewClass = reader.Read();
NewClass = reader.ReadNewClass();
NewClass = reader.ReadNewClass() as NewClass;
The compile error I keep getting is
Code:
namespace Server
{
public class NewClass
{
That has serialize and deserialize within itself working just fine.
But then I try to add it to PlayerMobile and serialize / deserialize it there.
Since the new class isn't inheriting another class, how would I do this?
NewClass = reader.Read();
NewClass = reader.ReadNewClass();
NewClass = reader.ReadNewClass() as NewClass;
The compile error I keep getting is
'Server.GenericReader' does not contain a definition for
'Read' and no extension method 'Read' accepting a first argument of type 'Server
.GenericReader' could be found (are you missing a using directive or an assembly
reference?)