all groups > dotnet xml > october 2003 >
You're in the

dotnet xml

group:

Serialization of MethodInfo class


Serialization of MethodInfo class Shah
10/29/2003 1:19:35 PM
dotnet xml:

It doesn't give any compilation error. At runtime, it
throws exception - 'There was an error reflecting
type 'System.Reflection.MethodInfo'

-------------

XmlSerializer mySerializer = new XmlSerializer(typeof
(MethodInfo));

mySerializer.Serialize(myWriter, method);

//method is a object of class MethodInfo
Re: Serialization of MethodInfo class Oleg Tkachenko
10/30/2003 12:54:58 PM
[quoted text, click to view]

It's by design. You cannot serialize class memebers that have
declarative security attributes. This is done to prevent breaking of the
declarative security.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
AddThis Social Bookmark Button