With .NET 3.0 and up, .NET has method extensions. With this a method can be added onto an existing class (like an Int32). I want the extended methods to be accessible to the FLEE expression elements. The following example illustrates:
// An extension method for an int that determines how many numbers compose the integer if it was represented as a string.
static class IntExtension
public static int Length(this int i)
if (i <= 0) throw new ArgumentOutOfRangeException();
return (int)Math.Floor(Math.Log10(i)) + 1;
// Test for it.
// 3.Length() == 1
// 462.Length() == 3
Also see: http://www.extensionmethod.net/
for more examples of extension methods.