Skip to content
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

Closed
yishaigalatzer opened this issue Aug 28, 2014 · 1 comment
Assignees
Milestone

Comments

@yishaigalatzer
Copy link
Contributor

For the following method

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant