c# - How does one get Properties using Reflection, while ignoring the inherited properties? -


There is no big deal to achieve the properties, but I do not want to attain the properties obtained from any other class.

Cheers

is

Experiment with your call to specify properties to receive from the call.

For example, without seeing the category of all non-static properties of any kind, you can do this:

  var properties = theType.GetProperties (BindingFlag.public | Binding flags.Nonopolick | binding flags.ininstance | bindingflag.defixed only);  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -