❔ Check if Type is static
This question is probably vague as shit, but I always do this check to ensure a type is static:
So, this works because static classes are declared abstract and sealed at the IL level.
My question is if this is actually valid and won't fail, ever. C# doesn't exactly have a
So, this works because static classes are declared abstract and sealed at the IL level.
My question is if this is actually valid and won't fail, ever. C# doesn't exactly have a
isStatic field or something.