Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • I would just like to add that the reason that this is correct is that serialization happens to the object, not the interface. It therefore makes sense to use DTOs to pass the data around. A big object which implements small interfaces will serialize to a big serialized object, which is not what you want to return to the client. Commented Jan 28, 2019 at 22:58