Complex object Serialisation

C

Chris Meek

I have a type that is something like this

public class MyType
{
private MyType( string pName ) { mName = pName; }

private string mName;

public static readonly MyType Type1 = new MyType( "Type1" );
public static readonly MyType Type2 = new MyType( "Type2" );
}

I then have a class which I would like to put into view state which has a
member of this type. I have marked both types as serializable but to no
avail.

Is there a way to do this, maybe using the IObjectReference?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top