-
Is possible to constraint generic type to records in C# 9.0 somehow? What I mean: public record MyRecord<T> where T : record
{
public T MyProperty { get; set; }
} |
Beta Was this translation helpful? Give feedback.
Answered by
svick
Oct 17, 2020
Replies: 2 comments
-
What would a constraint of |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a duplicate of #3859. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
svick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a duplicate of #3859.