What steps will reproduce the problem?
1. Write code like the following:
MyClass.Public.SimpleProperty(MyClass.Field(typeof(object),
"testProperty"), "TestProperty");
What is the expected output? What do you see instead?
The property should be public and the field private. However, the modifiers
are reversed, because the Public property is evaluated before the Field()
invocation, which consumes the modifier state, and is in turn evaluated
before the SimpleProperty() invocation.
Fix Proposal: Modifier properties should return some kind of state object
(with interface identical to the generator, e.g. TypeGen), not 'this'.
Original issue reported on code.google.com by StefanSi...@gmail.com on 16 Oct 2009 at 8:03
Original issue reported on code.google.com by
StefanSi...@gmail.com
on 16 Oct 2009 at 8:03