You have code that adds, deletes or changes in place, affects others. In this particular case, your function calls all the properties.
You may need something like C ++, where classes do not have explicit properties, such as Java, and are emulated using a macro or collection.
package mycompany.myapp; import propertiesgenerics; Class Test { static int version=1; public property<String> A; public property<String> B; public list< property<string> > Properties; public Bicycle() { public property<String> A = new property<String>(); public property<String> B = new property<String>(); Properties.add(A); Properties.add(B); }
If not a fan of the misuse of reflection, due to the fact that not all fields are treated as properties, and not all properties are treated as fields.
source share