accessing middle members around system.reflection?
i'm perplexing section exam category middle functions. apparently need contrast too, nonetheless tests digest seperate, especially since covers small, associated projects. i have distant is:
fieldinfo[] _fields =
typeof(buttonedform.titlebutton).getfields(
bindingflags.nonpublic | bindingflags.instance |
bindingflags.declaredonly);
console.writeline("{0} fields:", _fields.length);
foreach (fieldinfo fi _fields)
{
console.writeline(fi.name);
}
this spits out private members nicely, nonetheless still doesn't arrangement internals. i know possible, since i messing around autogenerated tests visible studio produce, asked something displaying internals exam project. well, i'm controlling nunit unequivocally affinity it, nonetheless i grasp same thing it?
Comments
Post a Comment