Add helper functions for C#.