Created
August 17, 2015 22:19
-
-
Save stefansedich/b4519bf77fa1ed4b3740 to your computer and use it in GitHub Desktop.
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
void Main() | |
{ | |
dynamic foo = 1000000000000000; | |
// DOES NOT WORK | |
var x = Convert.ToInt64(foo); | |
// WORKS!!! | |
//long x = Convert.ToInt64(foo); | |
x.Something(); | |
} | |
static class FooExt { | |
public static void Something(this long l) { | |
l.Dump(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment