Siemens Interview Question

using(A a = new A()) have you seen such a syntax anywhere?

Interview Answer

Anonymous

Mar 26, 2017

I said yes I know how to use it, when we instantiate something in 'using' then it disposes that object on closing curly bracket of 'using' body. Then he tried to make confuse on its syntax but I was surely know its syntax as i used that before. using(A a = new A()) { }