G
Guest
Hello,
i can use this chunk of code to constraint type T only to value types:
public class Test<T> where T : struct {...}
Is there a possibility to constraint type T only to number types (int,
float, decimal, etc.)?
Thanks
i can use this chunk of code to constraint type T only to value types:
public class Test<T> where T : struct {...}
Is there a possibility to constraint type T only to number types (int,
float, decimal, etc.)?
Thanks