Tuesday, April 3, 2012

Object type DataMembers in WCF DataContract

When we want to create a datacontract with a DataMember of the type 'object' then we have to add the KnownType Attribute for that DataContract so that the serializer will know the types allowed for that generic type.

public class RMEntity
public ConcurrentDictionary attributes = new ConcurrentDictionary();

public ConcurrentDictionary Attributes
return attributes;

attributes = value;


No comments :

Post a Comment