Re: Generics in Cache
- From: "INeedADip" <INeedADip@xxxxxxxxx>
- Date: Thu, 12 Jan 2006 18:33:37 -0800
I have a class with List<AnotherClass> as a property.
Then I try to serialize my entire class with:
string ret = string.Empty;
using (MemoryStream ms = new MemoryStream())
{
SoapFormatter sf = new SoapFormatter();
sf.Serialize(ms, this);
ret = System.Text.Encoding.Default.GetString(ms.ToArray());
}
return ret;
And it blows up every time saying it can't serialize generics....
"Serializer does not support serializing Generic Types"
When I said cache I was actually referring to the HttpSessionState. I
thought if we were using StateServer that the objects were serialized to the
server running StateServer?
.
- References:
- Generics in Cache
- From: INeedADip
- Re: Generics in Cache
- From: Bob Grommes
- Generics in Cache
- Prev by Date: Re: Do I need to include this project?
- Next by Date: Re: Visual Studio and Custom Control colors
- Previous by thread: Re: Generics in Cache
- Next by thread: Re: Generics in Cache
- Index(es):
Relevant Pages
|
|