4
Reply

Is the below statement Valid in C# ? Using(int x=23) { }

Mp Raghava

Mp Raghava

9y
1.7k
0
Reply

    statement is not valid. It will give below error :- 'int': type used in a using statement must be implicitly convertible to 'System.IDisposable'

    Yes

    Not valid, throw an error.

    statement is not valid. It will give below error :- 'int': type used in a using statement must be implicitly convertible to 'System.IDisposable'