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
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,10 @@ This documentation covers using ReactiveUI Source Generators to simplify and enh
11
11
12
12
ReactiveUI Source Generators automatically generate ReactiveUI objects to streamline your code. These Source Generators are designed to work with ReactiveUI V19.5.31+ and support the following features:
13
13
14
-
-`[Reactive]` With field and access modifiers, partial property support (C# 13 Visual Studio Version 17.12.0)
14
+
-`[Reactive]` With field and access modifiers, partial property support (C# 13 Visual Studio Version 17.12.0), partial properties with initializer support (C# preview only)
15
+
-`[Reactive(SetModifier = AccessModifier.Protected)]` With field and access modifiers.
16
+
-`[Reactive(Inheritance = InheritanceModifier.Virtual)]` With field and access modifiers. This will generate a virtual property.
17
+
-`[Reactive(UseRequired = true)]` With field and access modifiers. This will generate a required property.
15
18
-`[ObservableAsProperty]` With field, method, Observable property and partial property support (C# 13 Visual Studio Version 17.12.0)
16
19
-`[ObservableAsProperty(ReadOnly = false)]` Removes readonly keyword from the generated helper field
ObservableAsPropertyHelper is used to create a read-only property from an IObservable. The generated code will create a backing field and a property that returns the value of the backing field. The backing field is initialized with the value of the IObservable when the class is instantiated.
0 commit comments