Closed lemonmojo closed 1 year ago
Example: public string Name { get; init; }
public string Name { get; init; }
Or with records: public record Person(string Name)
public record Person(string Name)
See https://www.meziantou.net/csharp9-init-only-properties-are-not-read-only.htm
Example:
public string Name { get; init; }
Or with records:
public record Person(string Name)
See https://www.meziantou.net/csharp9-init-only-properties-are-not-read-only.htm