wcfserializationdatacontracts

Which types cannot be used for WCF?


I know for a matter of fact that Type cannot be used when passing in to a WCF service. Does anyone have a complete list?


Solution

  • I'm not sure anyone bothered compiling a list, and i'm not sure there is any use in compiling one. Instead, there are requirements that a type must meet in order to be used in WCF contracts. Mainly, it has to be serializable.

    I think it is the programmer's responsibility to verify that the types used in contracts are all serializable, and to make sure all custom types are serializing and deserializing properly.