Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Person person = new Person();
- person.Name = "John Smith";
- Person person = new Person() { Name = "John Smith" };
- List<string> list = new List<string> { "foo", "bar" };
- people.Where(delegate(person) { return person.Age >= 21;);
- people.Where(person => person.Age >= 21 );
- public static class StringUtilities
- {
- public static string Pluralize(this word)
- {
- ...
- }
- }
- string word = "person";
- word.Pluralize(); // Returns "people"
- var book = new { Title: "...", Cost: "..." };
- public int Id { get; set; }
- private int _id;
- public int Id {
- get { return _id; }
- set { _id = value; }
- }
Add Comment
Please, Sign In to add comment