Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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