Serialisation and Generics in Web Service

Posted by Saranram under ASP.NET on 9/28/2011 | Points: 10 | Views : 1133 | Status : [Member] | Replies : 1
Hi,

I have been using Asp.net Web service in my project. I have doubt in how generics are serialised in web services and Is it possible to return bounded generic type?

Saran


Responses

Posted by: SheoNarayan on: 9/28/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Generic collections are already serializable, or you can explicitly set [Serializable] attribute in the class that is in the generic collection. Read this

http://www.dotnetfunda.com/forums/thread5604-why-we-have-to-serializable-attribute-in-the-bussiness-object-class.aspx

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Saranram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response