Geeks With Blogs
Quixotry blog
Now you can, with .NET 2.0, as suggested by Roy Osherove http://weblogs.asp.net/rosh... 1: /// Works like a strongly typed "as" operator2: /// If the object is not of the requested type, 3: /// the default value for that type is returns instead of throwing an exception4: /// 5: /// 6: /// 7: /// 8: private T safeCastTo<T>(object ......

Copyright © Eliot Ng | Powered by: GeeksWithBlogs.net