Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect (class) records and struct records #193

Open
4 tasks
michael-damatov opened this issue Sep 10, 2024 · 0 comments
Open
4 tasks

Detect (class) records and struct records #193

michael-damatov opened this issue Sep 10, 2024 · 0 comments

Comments

@michael-damatov
Copy link

Currently, records are displayed as classes:

image

where ReSharper correctly shows them as a record

image

Similarly, record structs are displayed as simple structs:

image

the ReSharper correctly shows them as struct records:

image

To be done

  • detect record classes and show them as record
    • consider not showing the class keyword for class records (or make this behavior configurable)
  • try to detect record structs and show them as record struct (not trivial for imported libraries)
  • consider not showing the IEquatable<T> interface as all records implement it implicitly (or make this behavior configurable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant