Click here to Skip to main content
15,881,898 members
Articles / Programming Languages / C#

Alternative to the C# out keyword using Generics, Anonymous methods and Type converters

Rate me:
Please Sign up or sign in to vote.
2.88/5 (10 votes)
12 Jul 20066 min read 55.6K   124   12  
This article will demonstrate an alternative to the C# out parameter for those times when you need to get a value back from a method plus some additional information. I'll show you how generics and anonymous methods can be used together to help you write cleaner resuable code.

Views

Daily Counts

Downloads

Weekly Counts

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
I'm a Technical Architect working for a fairly large retail company in the UK. I've been involved in the software industry for over 12 years now and started out writing compiled BASIC under DOS.

My current weapon of choice is C# and have been using it since late 2000 when it was still in Beta.

The last few years I've moved into a more hands off role but code is where it's at and I like to keep in touch with the latest developments by runing my own open source project and writing articles for CodeProject of course!

Comments and Discussions