A UBF implementation in C#