Skip to content

Instantly share code, notes, and snippets.

@daanl
Last active December 16, 2015 16:59
Show Gist options
  • Save daanl/5467105 to your computer and use it in GitHub Desktop.
Save daanl/5467105 to your computer and use it in GitHub Desktop.
class Program
{
static void Main(string[] args)
{
var value = GetObject();
if (value is bool?)
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}
Console.ReadLine();
}
public static object GetObject()
{
return (bool)true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment