N
N
nuclear_kote2019-12-17 03:01:22
C++ / C#
nuclear_kote, 2019-12-17 03:01:22

How to set a constraint on struct or class at the same time in the where constraint?

public class Test<T>  where T : class <or> struct {

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-12-17
@nuclear_kote

There is currently no way to add an OR to a where constraint. You can just leave public class Test<T>without restrictions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question