Relative Content

Tag Archive for c#.netreflection

Checking the CallingConvention property of MethodInfo

I am working on an ASP.NET MVC project and I am working on reflection. I tried to determine whether a class does not have a standard, non-static public getter. I have devised the code below: public static bool NotHavePublicGetter( Type deger, string propertyName) { try { if (deger == null) throw new ArgumentNullException(“Type”); if (string.IsNullOrEmpty(propertyName)) […]