構造体の例 public struct Person { public string name; public int age; public Person(string name, int age) { this.name = name; this.age = age; } } class Program { static void Main(string[] args) { Person myself; myself.name = "yagi"; myself.age = 38; Person someone = new Person("hoge", 20); System.Console.WriteLine(myself.name + "," + myself.age); System.Console.WriteLine(someone.name + "," + someone.ag