Created
March 9, 2010 11:57
-
-
Save jonhilt/326517 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 static void DisplayNameAndTitle(Person p) | |
{ | |
Contract.Requires(p != null, "Person cannot be null"); | |
Contract.Requires(p.GivenName != null, "Person's given name must be specified"); | |
Console.WriteLine("{0} {1} {2}", p.Title, p.GivenName, p.FamilyName); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment