I created a Static Class and used this in Reflection. But when I turned to the methods of this class, it showed 5 methods, but I created only 1. Additional methods:
Write ToString Equals GetHashCode GetType
But I only created Write methods.
One static method may be in a static class, but these additional 4 methods are not static and from there. What is the base class for this
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace ReflectionDemo { static class ReflectionTest { public static int Height; public static int Width; public static int Weight; public static string Name; public static void Write() { Type type = typeof(ReflectionTest);
But how to create a static class object to access these methods, a static class cannot have non-static methods
source share