Skip to content

Instantly share code, notes, and snippets.

@tsubakimoto
Created December 5, 2013 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubakimoto/7807100 to your computer and use it in GitHub Desktop.
Save tsubakimoto/7807100 to your computer and use it in GitHub Desktop.
private class Person
{
public string Name { get; set; }
public int Age { get; set; }
}
private void Method()
{
Person me = new Person() { Name = "tsubaki", Age = 26 };
Console.Write("My name is {0}. I'm {1}.", me.Name, me.Age); // My name is tsubaki. I'm 26.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment