Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test
- {
- private int x,y,z; //number of these properties is large
- [Pure]
- public void Foo()
- {
- //only x must be allowed to change
- }
- }
- Contract.Ensures(Contract.OldValue<int>(y) == y);
- Contract.Ensures(Contract.OldValue<int>(z) == z);
- ...//and for other large number of properties
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement