Top "Known-types" questions

Known Types are a mechanism to allow information about derived types to be included in a data contract for serialization purposes.

When is it appropriate to use the KnownType attribute?

After reading the MSDN reference, I still have questions about when to use the KnownType attribute. I understand that the …

c# wcf known-types
What is the difference in WCF when using KnownType and ServiceKnownType?

I have a service that returns an array of animal but the list can contain cats, dogs, etc, which all …

.net wcf known-types
Problem with knowntype attribute in wcf

I'm having the following error in my wcf client. NetDispatcherFaultException was unhandled. The formatter threw an exception while trying to …

wcf known-types
How to specify a WCF known type in config that is generic?

I have a type, let's call it Data<TKey>. I also have a WCF service contract that accepts …

.net wcf generics known-types
Generally accepted way to avoid KnownType attribute for every derived class

Is there a generally accepted way to avoid having to use KnownType attributes on WCF services? I've been doing some …

c# wcf datacontract known-types
DataContractResolver / KnownType issue when custom class contains another custom class

I'm trying to output a list of objects to a json format using the DataContractJsonSerializer class however I keep running …

c# .net fluent-nhibernate datacontractserializer known-types