<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.0.11-beta-23409" />

ContractNamespaceAttribute

public sealed class ContractNamespaceAttribute : Attribute
Specifies the CLR namespace and XML namespace of the data contract.
public string ClrNamespace { get; set; }

Gets or sets the CLR namespace of the data contract type.

public string ContractNamespace { get; }

Gets the namespace of the data contract members.

public ContractNamespaceAttribute(string contractNamespace)

Initializes a new instance of the ContractNamespaceAttribute class using the supplied namespace.