T4Immutable
T4Immutable copied to clipboard
Exclude some properties from the `With` method parameter list
In the case of the class, I'd like the generated With
method to create a new object updating Price
but not capable of updating 'Id'.
Can we decorate the 'Id' property to prevent it being included in the With
method parameter list?
[ImmutableClass]
class StockStatus {
[SomeExcludeAttribute]
public string Id { get; } // Wish to exclude this from the With method
public decimal Price { get; }
}