Skip to content

Using DataContractAttribute.Name or ProtoContractAttribute.Name as DataContract's name #346

Open
@DosangGu

Description

@DosangGu

To avoid duplicate data contract name when using DataContract classes with same name, but different namespaces, I think it needs some mechanism for renaming data contract's name.

Found some referencable operation in ServiceBinder class that renames operation contract's name by using OperationAttribute.Name and OperationContractAttribute.Name

else if (attribs.IsDefined("System.ServiceModel.OperationContractAttribute"))
{
attribs.TryGetAnyNonWhitespaceString("System.ServiceModel.OperationContractAttribute", "Name", out opName);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions