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
Post a Comment