1
Vote

Static Properties

description

The get/set property methods in both ComLib.ReflectionHelper and ComLib.Reflection.ReflectionUtils throw an exception if the "obj" parameter is null. Static properties do not require an instance of the class to be passed to the GetValue / SetValue methods. If the properties are declared on a static class, it's not even possible to create an instance.

The methods should be updated to allow for static properties, and only throw the ArgumentNullException for instance properties.

comments