Skip to content

Allow separate get and set contracts for properties #32

@JamesFaix

Description

@JamesFaix

Currently contract attributes placed on properties create pre and postconditions, without any options. Ideally each contract should be able to be applied to get, set, or both.

One possible solution is to create an enumeration for these options and add a public property to ContractAttribute to allow specification.

[Flags] 
enum PropertyAccessors { 
    None = 0, 
    Get = 1, 
    Set = 2, 
    Both = Get | Set
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions