Overloading Getter And Setter of Property Using Attribute (FEATURE REQUEST)
- Dominant language
- No language data
- Stars
- 328
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
I want to create a custom attribute that overrides the getter and setter of a property so that I can reuse some logic.
### CASE
I want to create an attribute for properties that use the ViewState instead of a backing field. I can't do this without being able to override the getter and setter.
### MY Code without the attribute
```
Public Property sQuestionaire As Object
Get
Return Me.ViewState(NameOf(sQuestionaire))
End Get
Set
Me.ViewState(NameOf(sQuestionaire)) = Value
End Set
End Property
```
### New Code with the attribute
```
Public Property sQuestionaire As Object
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.