+ 6
Question | GetMethods(BindingFlags flag)
Hello. Why when I use GetMethods() with any flags(BindingFlags.Public, BindingFlags.DeclaredOnly, ...)- here no detected methods? Without flags - okay. https://code.sololearn.com/cDqgPVMserdZ/?ref=app
2 Respuestas
+ 1
You must specify Instance or Static along with Public or NonPublic or no members will be returned.
like this:
GetMembers(BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public);
+ 7
Thank you HAL8999+;. I understand :)