C# 7.0 switch with var/null behavior – stackoverflow.com

Given the following code: string someString = null; switch (someString) { case string s: Console.WriteLine("string s"); break; case var o: Console.WriteLine("var o"); ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "C# 7.0 switch with var/null behavior – stackoverflow.com"