Main Code:
public class ReflectionsDemo
{
public void demo()
{
Type t = typeof(StaticClassDemo);
Console.WriteLine(t.Attributes);
}
}
StaticClassDemo is just a static class with a couple of static methods.
Output: AutoLayout, AnsiClass, Class, Public, Abstract, Sealed
I understand that a static class can't be marked as an abstract class, but why it is having abstract as an attribute?