Click here to Skip to main content
15,867,330 members
Articles / Programming Languages / C# 4.0

Chained null checks and the Maybe monad

Rate me:
Please Sign up or sign in to vote.
4.94/5 (145 votes)
21 Sep 2010CPOL5 min read 221.4K   160  
Shows how a few Extension Methods solve the 'repeated null check' problem.
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder ActiveMesa
United Kingdom United Kingdom
I work primarily with the .NET technology stack, and specialize in accelerated code production via code generation (static or dynamic), aspect-oriented programming, MDA, domain-specific languages and anything else that gets products out the door faster. My languages of choice are C# and C++, though I'm open to suggestions.

Comments and Discussions