Converted Project to c#