You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -150,18 +148,132 @@ public partial class Person : IBindableObject, INotifyPropertyChanged
150
148
You can now use your `Person` class like this:
151
149
152
150
```csharp
153
-
varperson=newPerson();
154
-
person.Name="Alice";
155
-
person.Age=30; // PropertyChanged event will be raised for Name changes if you subscribe to it.
151
+
varperson=newPerson();
152
+
person.Name="Alice";
153
+
person.Age=30;
154
+
// PropertyChanged event will be raised for Name changes if you subscribe to it.
156
155
```
157
156
158
-
159
157
**No need to manually implement** property notification, thread safety, or boilerplate code—the generator does it for you!
160
158
161
-
> For more advanced scenarios, you can use attribute parameters to control property behavior (e.g., read-only, also notify other properties, etc.).
159
+
> For more advanced scenarios, you can use attribute parameters to control property behavior (e.g., read-only, also notify other properties, or control accessor/property visibility).
162
160
161
+
---
163
162
164
-
----
163
+
### Advanced: Customizing Getter and Setter Accessors
164
+
165
+
You can control the visibility of the generated property's getter and setter using the `AccessorAccessibility` enum.
166
+
The property itself will use the most accessible (widest) of the getter or setter's accessibilities.
167
+
168
+
#### Example
169
+
170
+
```csharp
171
+
usingThunderDesign.Net.Threading.Attributes;
172
+
usingThunderDesign.Net.Threading.Enums;
173
+
174
+
publicpartialclassPerson
175
+
{
176
+
// Public getter, private setter (property will be public)
0 commit comments