2023-08-14から1日間の記事一覧

【C#】recordのススメ

ダメージ計算があるゲームなどにおいて、 パラメータの値のみを格納しているデータクラスを 使用したい場面があったりします。 public class Parameter { public string name { get; init; } public int hp { get; init; } public int attack { get; init; }…