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
With the introduction of SG a nice field to work on is the generation of properties with special skills, similar to the SWIFT PropertyWrappers. Currently a straightforward implementation is handicapped by the missing possiblity to use partial properties. To workaround an abstract helper class with abstract properties, or attributed private fields (see AutoNotifyGenerator) must be used. Both solutions are not very comfortable and concise.
With partial properties the sample would look much cleaner:
Version Used:
VS 16.7 P2
Championed issue: #3301
Draft spec: #3417
With the introduction of SG a nice field to work on is the generation of properties with special skills, similar to the SWIFT PropertyWrappers. Currently a straightforward implementation is handicapped by the missing possiblity to use partial properties. To workaround an abstract helper class with abstract properties, or attributed private fields (see AutoNotifyGenerator) must be used. Both solutions are not very comfortable and concise.
With partial properties the sample would look much cleaner:
A working example SG using an abstract template class can be found here: ObservableTests. With partial properties the code would be way more concise.
The text was updated successfully, but these errors were encountered: