Class DataContractHelper
A helper for working with types annotated with DataContractAttribute.
public static class DataContractHelper
- Inheritance
-
DataContractHelper
- Inherited Members
Methods
GetDataContractNames(Type, out string, out string)
Gets the data contract type name and namespace for the specified type.
public static void GetDataContractNames(Type type, out string typeName, out string typeNamespace)
Parameters
typeTypeThe type.
typeNamestringOn return, the data contract type name.
typeNamespacestringOn return, the data contract type namespace.
Exceptions
- ArgumentNullException
typeis null.- InvalidOperationException
Type
typeis not decorated with DataContractAttribute.