المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : List Objects to Xml Method



C# Programming
10-15-2009, 09:31 AM
Hi

I looking to implement a method in C# which I can pass a list object of any type, serializes the object into xml and returns an xml document.

My problem is on this interface, because I am looking to pass any list object of any type that is being passed. Is there a way in which I can declare a list that can be of any type and on the declaration xmlserialize that the list object can be of any type?

Thanks