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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -