Skip to content

Rw/properties - #154

Open
ryanwilsond wants to merge 20 commits into
stagingfrom
rw/properties
Open

Rw/properties#154
ryanwilsond wants to merge 20 commits into
stagingfrom
rw/properties

Conversation

@ryanwilsond

Copy link
Copy Markdown
Owner

Description

C# style properties. Main different is using a property keyword to help mentally distinguish them from fields:

class A {
  public property int P1 {
    get {
      // ...
    } set {
      // ...
    }
  }
  
  public property int P2 => /* ... */;
}

@ryanwilsond ryanwilsond self-assigned this Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant