Maybe rewrite this as 
```
var typeInfo = TestClass.Type.GetTypeInfo();
var isStaticClass = typeInfo.IsAbstract && typeInfo.IsSealed;
```