In reading about C#, I have come across the terms “data transfer type” and “data transfer object”. This shows up around annonymous types, where a type is created on the fly to hold results, such as from LINQ. Are these two terms referring to the same thing ?
Thanks,
Scott
I think some more context would help here.
An anonymous type has method scope. So this means, it cannot be passed outside of it’s method. Whereas a Data Transfer Object entire purpose in life is to be passed outside of it’s method.
I suspect their creating Data Transfer Types through an anonymous type and then projecting this to a Data Transfer Object.
But yeah, including the sentence you found this term in would help.