C Sharp (C#) - Polymorphism and Abstract Classes
Find the issue in this code:
object obj = "test";
if (obj is string s)
{
Console.WriteLine(s.Length);
}
else
{
Console.WriteLine("Not a string");
}