using statement C# (try with resources Java)