convert Java To C#