While doing some work on some DTO (Data Transfer Objects) code and I decided instead of making numerous overloads of the constructor for an object, I would provide basic one or two and additional construction options when using them will use the new Object Initializer code structure available.
I was looking for a good set of examples and the below blog post is pretty good so I am linking it here for me to find later.
Object and Collection Initializers – VB – Eric White’s Blog – Site Home – MSDN Blogs


Comments
Leave a comment Trackback