I bet you used factory/abstract factory pattern at least once in your career. It’s pretty straightforward to implement and use, but typical syntax (Car myCar = carFactory.Create(typeof(Car))) looks like piece of crap and is nowhere near to standard object construction. Can you make it prettier?
Adding methodof operator
Posted by MagnatLU
on December 8, 2011
No comments
Ever wondered why there is typeof operator but there are no methodof and similar? It turns out you can use implicit conversions and generics to implement it in .NET 2.0 or newer.
Read more »
What’s the point?
Posted by MagnatLU
on October 15, 2011
No comments
Recent Comments