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
Promote the nameof operator when the symbol name is the same as the value (e.g. var Name = nameof(Name))
Stop inlining the constant value during IL creation
This feels like two separate rules. The first is the existing ECS0600 but is a bit pedantic and should be moved to Suggestion. A new analyzer for the second case (e.g., ECS0601) that is a warning and only for publicly visible or Internalsvisibleto symbols
ECS0600 is intended to do two things:
nameof
operator when the symbol name is the same as the value (e.g. var Name =nameof(Name)
)This feels like two separate rules. The first is the existing ECS0600 but is a bit pedantic and should be moved to Suggestion. A new analyzer for the second case (e.g., ECS0601) that is a warning and only for publicly visible or Internalsvisibleto symbols
CC @MattKotsenas
The text was updated successfully, but these errors were encountered: