I\'ve a generic class, that helps me to do checks on argument values
internal sealed class Argument
where T : class
{
private void TraceAndT
Since static classes cannot be instantiated, it can never create Argument<T>
with a static type.
What you are doing wrong is using a static type as a generic type argument.
Generics only work with instances, not static classes.
Since static classes won't have instance members, my concern would be what kind of thing I'm going to do with them.
I believe that, missing that you can't use static classes as generic arguments, I believe that you need to do this with extension methods instead of a generic class.
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods
This is deliberate.
Static classes try to prevent inappropriate use, so in almost all situations, you can't use them in situations where you'd normally want an instance of the type... and that includes type arguments.
See section 10.1.1.3.1 of the C# 4 spec for the very limited set of situations in which you can refer to static class types.