-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix For Generators used on Generic class (#119)
- Loading branch information
1 parent
5b65578
commit 954ab78
Showing
4 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using ReactiveUI; | ||
using ReactiveUI.SourceGenerators; | ||
|
||
namespace SGReactiveUI.SourceGenerators.Test; | ||
|
||
/// <summary> | ||
/// TestViewModel2. | ||
/// </summary> | ||
/// <typeparam name="T">the type.</typeparam> | ||
/// <seealso cref="ReactiveUI.ReactiveObject" /> | ||
public partial class TestViewModel2<T> : ReactiveObject | ||
{ | ||
[Reactive] | ||
private bool _IsTrue; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved. | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for full license information. | ||
|
||
using System.Windows; | ||
using ReactiveUI.SourceGenerators; | ||
|
||
namespace SGReactiveUI.SourceGenerators.Test; | ||
|
||
/// <summary> | ||
/// TestViewWpf2. | ||
/// </summary> | ||
/// <seealso cref="System.Windows.Window" /> | ||
[IViewFor("TestViewModel2<int>")] | ||
public partial class TestViewWpf2 : Window | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TestViewWpf2"/> class. | ||
/// </summary> | ||
public TestViewWpf2() => ViewModel = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters