Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

XML DataContract Formatter fails to write when the return type is object #1073

@yishaigalatzer

Description

@yishaigalatzer

For the following method

public object GetSomething()
{
     return new User();
}

and specifying accept header to be application/xml the DataContractSerializer will throw.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions