Open ghost opened 6 years ago
While I'm writing this property:
Public Property NewYork() As Integer Get Return Me("NewYork") End Get Set Me("NewYork") = Value End Set End Property
I asked myself: Why can't it be auto-implemented?
So, could it be like this: Public Property NewYork(Me("NewYork")) As Integer
Public Property NewYork(Me("NewYork")) As Integer
Or like this:
Public Property NewYork() As Integer {Me("NewYork")}
This is not only for dictionary keys. It's general for any property that uses an existing object instead of a backing filed
Public Property Prop1(Storage) As Integer
Or:
Public Property Prop1() As Integer {Storage}
I hope to hear other syntax suggestions.
??
I think it's covered by #61
While I'm writing this property:
I asked myself: Why can't it be auto-implemented?
So, could it be like this:
Public Property NewYork(Me("NewYork")) As Integer
Or like this:
Public Property NewYork() As Integer {Me("NewYork")}
This is not only for dictionary keys. It's general for any property that uses an existing object instead of a backing filed
Public Property Prop1(Storage) As Integer
Or:
Public Property Prop1() As Integer {Storage}
I hope to hear other syntax suggestions.