Created
April 26, 2015 11:02
-
-
Save taycaldwell/48c83f1771e7dba3a0b8 to your computer and use it in GitHub Desktop.
object and is keyword example in C#
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
object range = howeverYouGetThisValue(); | |
if (range is List) | |
{ | |
Console.WriteLine("Non-self targeting spell."); | |
} | |
else | |
{ | |
Console.WriteLine("Self targeting spell."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment