c# - BindingFlags for abstract class? -


i'm trying find right bindingflags use when using getmethod abstract class.

public abstract class {     private void consoleoutput(string text)     {     } } 

i tried following, doesn't seem work:

this.gettype().getmethod("consoleoutput", bindingflags.nonpublic | bindingflags.declaredonly) 

bindingflags.nonpublic | bindingflags.instance 

even though class abstract, method still instance.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -