-
Notifications
You must be signed in to change notification settings - Fork 5.5k
-
It would be very helpful if certain members or certain parts of methods (but that's covered by discussion 6308) could be excluded based on generic constraints, for example:
public class Foo<T> {
public void Bar(T value) where T : struct { ... }
public void Bar(T value) where T : class { ... }
}
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
This is overload by generic constraint, which is not supported in the CLR metadata system.
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment