Created
July 29, 2011 05:01
-
-
Save saga/1113163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IEnumerable<string> strings = new List<string>(); | |
if (strings is IEnumerable<object>) | |
Console.WriteLine("True"); | |
else | |
Console.WriteLine("False"); | |
/// why this is False?? | |
if (strings is IList<object>) | |
Console.WriteLine("True"); | |
else | |
Console.WriteLine("False"); | |
if (strings is IEnumerable<string>) | |
Console.WriteLine("True"); | |
else | |
Console.WriteLine("False"); | |
if (strings is IList<string>) | |
Console.WriteLine("True"); | |
else | |
Console.WriteLine("False"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment