Click here to Skip to main content
15,886,763 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 223.3K   160  
Shows how a few Extension Methods solve the 'repeated null check' problem.

Views

Daily Counts

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