Proposal: [DebuggerBrowsable(DebuggerBrowsableState.Never)] on Record's EqualityContract #4001
Replies: 6 comments
-
@jcouv for visibility. I don't really love this idea. But i'm not strongly opposed to it either. I just don't really like the idea of emitting code by default just for a VS IDE scenario (esp. around a feature that we may change at any point in time). |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be better for a record to emit some kind of marker so VS can tell it's a record, and choose its own policy to apply? |
Beta Was this translation helpful? Give feedback.
-
IMO, yes. And we do have a PR where this was done. i.e. the Roslyn API will expose |
Beta Was this translation helpful? Give feedback.
-
@CyrusNajmabadi Debugger* attributes are commonly emitted by the compiler in many scenarios. It's not for VS IDE - it's for debugging experience in general (not just in VS). |
Beta Was this translation helpful? Give feedback.
-
Sorry, i read this as EditorBrowsable. |
Beta Was this translation helpful? Give feedback.
-
@CyrusNajmabadi Yeah, I'd agree with that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to suggest that
DebuggerBrowsable(DebuggerBrowsableState.Never)]
be applied to Record'sEqualityContract
member so that EqualityContract does not clutter the view when Watching/Inspecting record classes.Beta Was this translation helpful? Give feedback.
All reactions