Andrew, are you using
ASP.NET MVC framework?
About week ago I started to study this excellent web framework, and
I've got same ideas.
So, I've implemented such 'view model' in previously described way.
Usage example (this is not true controller, it just shows availability
of auto class in source code):
using ViewModel;
public class MyClassController {
public FooAction() : MyClassFooActionViewModel
viewmodel(A : int, B : int, C : IEnumerable[string])
{
viewmodel ( A = 10 );
}
}
Complete macro source is available here:
http://paste.org.ru/?wd8xl8