Some helper classes for C#