various things for c#