Generic type checking February 21, 2023 by Tarik public class Class1<GenericType> where GenericType : struct { } This one seemed to do the job..