Skip to content

Instantly share code, notes, and snippets.

@taycaldwell
Created April 26, 2015 11:02
Show Gist options
  • Save taycaldwell/48c83f1771e7dba3a0b8 to your computer and use it in GitHub Desktop.
Save taycaldwell/48c83f1771e7dba3a0b8 to your computer and use it in GitHub Desktop.
object and is keyword example in C#
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