KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Consider this code: class Program { static void Main(string[] args) { string s = null; bool b = s is string; Console.WriteLine(b); } } In above code s is string but b is false . actually s as string,Why i get this result ? Why compiler has this behavior?
Tags (comma-separated)
Save Edits
Cancel