LogiQuest
Back to Operators
15

What is the output of the following program?

object o = "hi";
if (o is string s) Console.WriteLine(s.Length);
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.