2017-06-07から1日間の記事一覧
C#(7.0)でImmutableクラスを作成する場合、下記のような記述になります。 public class Person { public int Age { get; } public string Name { get; } public Person Child { get; } public Person(int age, string name, Person child) { Age = age; Na…
C#(7.0)でImmutableクラスを作成する場合、下記のような記述になります。 public class Person { public int Age { get; } public string Name { get; } public Person Child { get; } public Person(int age, string name, Person child) { Age = age; Na…