PC Review


Reply
Thread Tools Rate Thread

Deserialize into ReadOnly Class Properties?

 
 
Random
Guest
Posts: n/a
 
      29th Jul 2004
How is it possible to do automatic deserialization of XML data into class
properties declared as ReadOnly? Since the serializer uses the Set
procedure within the Property when doing the serialization, it won't work by
declaring the Property as ReadOnly. Neither will it work by targeting the
<XmlAttributeAttribute()> to the Private variable holding the value.

Does anyone have any ideas?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using readonly properties in a class... Brad Pears Microsoft VB .NET 4 14th Apr 2008 04:23 PM
Serialize/DeSerialize a nested Class davebaranas@shaw.ca Microsoft VB .NET 1 19th Sep 2006 09:29 AM
IXmlSerializable - Deserialize class with class references Jamie Microsoft C# .NET 0 31st Jul 2006 07:26 PM
Deserialize a ConfigurationElement derived class myself ? Softlion Microsoft C# .NET 1 22nd Jul 2006 12:02 PM
readonly properties when displaying an object's properties in propertygrid movieknight@gmail.com Microsoft VB .NET 0 14th May 2006 06:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.