Created
February 19, 2019 15:24
-
-
Save joncham/ad7b74c5ea790d8b3f9b50882b5d95b6 to your computer and use it in GitHub Desktop.
C# Pop Quiz
This file contains hidden or 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
using System; | |
class Program | |
{ | |
enum MyEnum { Zero } | |
static void Main(string[] args) { | |
Print(0.0f); | |
Print(0.1f); | |
} | |
static void Print(object a) { | |
Console.WriteLine(a); | |
} | |
static void Print(MyEnum e) { | |
Console.WriteLine(e); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment