Thursday, March 8, 2012

Math extensions for .NET

Check out this nice file of extensions for Math in .NET to make your math clearer. The idea is to apply the fluent programming techniques to math usage in .NET. The basic idea is to turn something like this:
if ((y <= x && x <= z) || (y >= x && x >= z))
into this:
if (x.IsBetween(y, z))

No comments: