Porting an old school project over from java to c#