Hi,
[ExtensionOf(classStr(VanillaClass))]
final class SomeFormVanillaClass_Extension
{
[PostHandlerFor(classStr(VanillaClass), methodStr(VanillaClass, insertSomeTableRec))]
public static void VanillaClass_Post_insertSomeTableRec(XppPrePostArgs args)
{
VanillaClass vanillaClass= Args.getThis();
QueryRun myVariable; // this have value in base class
var bindFlags = BindingFlags::Instance | BindingFlags::NonPublic;
var buffer = vanillaClass.GetType().GetField("myVariable",bindFlags);
myVariable = buffer .GetValue(vanillaClass);
}
}
here 'buffer' have null value , method 'GetField' couldn't get the value from VanillaClass but VanillaClass has value of myVariable. please advice if anything need to check.