






















Client will get a 400 Bad Request response when the return type from the method signature does not match the type of the returned result.
For example,
public Object DoWork()
{
return 12;
}
Why IEnumerable<T> cannot be used as the return type?
Because IEnumerable (and other interfaces) are not expressible in XML schema. Using a concrete type works fine in this case.
博客园
© 2004-2026
浙公网安备 33010602011771号
浙ICP备2021040463号-3
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。