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

Implement class record specific behaviors #291

Closed
6 tasks done
adrianoc opened this issue May 10, 2024 · 0 comments
Closed
6 tasks done

Implement class record specific behaviors #291

adrianoc opened this issue May 10, 2024 · 0 comments
Milestone

Comments

@adrianoc
Copy link
Owner

adrianoc commented May 10, 2024

  • Adds a protected virtual Type EqualityContract property that returns the type of the record
  • Adds a copy constructor
  • Adds a public virtual R <Clone>$() method that returns new R(this)
  • Mark methods Equals() (both overloads) and operators == and != with NullableContext(2) attribute
  • Take inheritance into account in the implementation of all members.
  • Self referencing record X(X Other, int Id)
@adrianoc adrianoc mentioned this issue May 10, 2024
11 tasks
@adrianoc adrianoc changed the title Implement specific behaviors for class record Implement class record specific behaviors May 10, 2024
@adrianoc adrianoc added this to the 2.12 milestone May 10, 2024
adrianoc added a commit that referenced this issue Jun 19, 2024
adrianoc added a commit that referenced this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant