You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For C# record types the auto-generated implementation now provides a shallow copy constructor and a new with operator which allows creating modified copies of existing record objects.
#15 and #13 provide the first half of such an implementation, by introducing copy constructors for all generated classes and an overload for triggering copy on input. This allows using the InputMapping operator to pull any desired properties from the input, while allowing specification of other properties.
Later we can take this approach one step further either by making the copy constructor public, or exposing a Copy method to allow emulating something similar to the with operator. At the moment I feel we should experiment a bit first with the workflow-based functionality to get a better feel about future requirements before committing one way or the other.
This would allow to copy and modify fields easily.
The text was updated successfully, but these errors were encountered: