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
Not sure that's a correct example. When you have a property, the classic expectation is that the getter doesn't create anything, it only "gets" the value.
JohanLarsson
changed the title
IDISP004 should warn here
IDISP004 should warn when using property returning created
Mar 23, 2020
In the example above the getter returns a created disposable that is then not disposed in the method.
Agreed a property returning an instance that the caller is supposed to dispose is nasty.
The text was updated successfully, but these errors were encountered: