EDN Admin
Well-known member
Hi,<br/><br/>Here is a class with a property of type "System.Type". The name of the property is "DataType". Now i want to serialize an instance of this class. And I want the output to be like this:<br/><MyOjbect><br/> ...<br/> <DataType>System.Int32</DateType><br/> ...<br/></MyObject><br/><br/>When I try to serialize the object, an exception of type InvalidOperationException is thrown.<br/>The exception message is : Type System.Int32 may not be used in this context.<br/><br/>Any idea about this? Thanks in advance.
View the full article
View the full article