Skip to content

Why is there no readonly ref record struct? #5431

Answered by 333fred
hugener asked this question in General
Discussion options

You must be logged in to vote

record struct S implies implementing IEquatable<S>. ref structs cannot implement interfaces.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@hugener
Comment options

@hypeartist
Comment options

@CyrusNajmabadi
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jnm2
Comment options

You must be logged in to vote
1 reply
@333fred
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants