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; | |
| public class Demo | |
| { | |
| public static void Main() | |
| { | |
| Person p = CreateA.Person().WithAge(23).WithName(""); | |
| Person q = CreateA.Person().WithName("").WithAge(23); | |
| Person r = CreateA.Person().WithName(""); | |
| // The next two don't compile because the name is not set |
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
| # Store this in your ~/.bashrc file. Note that a .bashrc file is really just a regular shellscript, | |
| # but it must be executed _inside_ the current shell instead of as a subprocess in order for its | |
| # definitions to apply to the current shell. Alternatively, you can apply this file from within | |
| # your ~/.bashrc (or interactively in a shell) with `source /path/to/file.bashrc` | |
| # or `. /path/to/file.bashrc`. | |
| # Basic aliases that simply expand to the given command (which, in the case of git, | |
| # may involve git aliases). Note that you may append any parameters/flags when invoking the alias, |