Resources using property create pattern #5487
SimonCropp
started this conversation in
General
Replies: 1 comment
-
These could and probably should be backing fields. I’d suggest not sending a mega PR though, those types of refactoring are disruptive for little benefit. We can fix these incrementally as we change the classes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i notice quite a few of the immutable *resource classes are using the "property create instance on get" approach.
so creating a new instance every time the property is accessed
I am just wondering if this is intentional? ie instead of placing it in a backing field
Beta Was this translation helpful? Give feedback.
All reactions