C Sharp (C#) - Polymorphism and Abstract Classes
How can you safely extract a
string from an object and convert it to uppercase using pattern matching?string from an object and convert it to uppercase using pattern matching?if (obj is string s) safely checks type and assigns s.ToUpper() on sobj is not a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions