Table of Contents

Class DataContractHelper

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

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

type Type

The type.

typeName string

On return, the data contract type name.

typeNamespace string

On return, the data contract type namespace.

Exceptions

ArgumentNullException

type is null.

InvalidOperationException

Type type is not decorated with DataContractAttribute.