Last active
October 2, 2015 00:42
-
-
Save bookercodes/ac7655f26ce3860e6dd9 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
| public string this[int index] | |
| { | |
| get { return ""; } | |
| } | |
| // versus. | |
| public string this[int index] => ""; |
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
| public static Person operator +(Person c1, Person c2) | |
| { | |
| return new Person(); | |
| } | |
| // versus. | |
| public static Person operator +(Person c1, Person c2) => new Person(); |
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
| public int Age | |
| { | |
| get { return 10; } | |
| } | |
| // versus. | |
| public int Age => 10; |
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
| public void SayHi() | |
| { | |
| Console.WriteLine("Hi"); | |
| } | |
| // versus. | |
| public void SayHi() => Console.WriteLine("Hi"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment