Skip to content

Commit

Permalink
Add inheritance example
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Nov 19, 2024
1 parent 7b61a7f commit 47c6306
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ReactiveGeneratorDemo/ViewModels/Car.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ public partial class Car : ReactiveObject
{
[Reactive]
public partial string Make { get; set; }

[Reactive]
public partial decimal Price { get; private set; }
}
10 changes: 10 additions & 0 deletions ReactiveGeneratorDemo/ViewModels/UsedCar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace ReactiveGeneratorDemo.ViewModels;

public partial class UsedCar : Car
{
[Reactive]
public partial decimal Price { get; private set; }

[Reactive]
public partial int Miles { get; set; }
}

0 comments on commit 47c6306

Please sign in to comment.