Closed PavelBal closed 6 months ago
public static object GetFieldOrProperty(object obj, string name)
{
obj = convertSpecialObject(obj);
const BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance;
var t = obj.GetType();
return internalGetFieldOrProperty(t, name, bindingFlags, obj);
}
Extend bindingFlags
for static fields?
After discussion we decided that this should not be supported.
Right now, accessing static fields of an object only works by calling the
setStatic
function. It should also be supported by callingobject$get
.