This answer describes constructing 'an anonymous struct' in C#: Is there an equivalent C# syntax for C's inline anonymous struct definition?
var x = new { SomeField = 1, SomeOtherField = "Two" };
Is it valid to return this from a method to avoid having to define a struct explicitly? A comment on that answer says no, but that was 2011...