Last active
December 19, 2015 04:48
-
-
Save kmorcinek/5899439 to your computer and use it in GitHub Desktop.
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
public int Add(int a, int b) | |
{ | |
return a + b; | |
} | |
public void Foo() | |
{ | |
Func<int,int> add5 = x => Add(5, x); | |
} | |
// TreatObject(value ); | |
// PrintInt(int) | |
// string.Format() | |
// 1.ToString() | |
// 5 powodów dla których trzeba uważać gdy korzystamy z czegokolwiek innego niż int. | |
// uint a = uint.MaxValue; | |
// var ui = new uint[] { 1, 2 }; | |
// var di = new double[2]; | |
// di = ui.Cast<double>().ToArray(); | |
// | |
// double d = 40058764.0; | |
// int iii = (int)d; | |
// | |
// var result = 1.01f - 0.01f; | |
// bool val = true; | |
// while (val) | |
// { | |
// float f = 0.001f; | |
// var bytes = BitConverter.GetBytes(f); | |
// } | |
// | |
// while (true) | |
// { | |
// byte[] bytes = new byte[] { 120, 18, 131, 58 }; | |
// float f = BitConverter.ToSingle(bytes, 0); | |
// //string k = Console.ReadLine(); | |
// } | |
// | |
// var maxUint = (double)uint.MaxValue; | |
// var maxFloat = (double)float.MaxValue; | |
// if (maxFloat > maxUint) | |
// { | |
// | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment