File tree Expand file tree Collapse file tree 7 files changed +14
-0
lines changed Expand file tree Collapse file tree 7 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
using System ;
6
+ using System . Diagnostics ;
6
7
using System . Linq ;
7
8
using CommunityToolkit . Mvvm . Input ;
8
9
@@ -49,6 +50,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
49
50
/// </code>
50
51
/// </summary>
51
52
[ AttributeUsage ( AttributeTargets . Field , AllowMultiple = true , Inherited = false ) ]
53
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
52
54
public sealed class AlsoNotifyCanExecuteForAttribute : Attribute
53
55
{
54
56
/// <summary>
Original file line number Diff line number Diff line change 4
4
5
5
using System ;
6
6
using System . ComponentModel ;
7
+ using System . Diagnostics ;
7
8
using System . Linq ;
8
9
9
10
namespace CommunityToolkit . Mvvm . ComponentModel ;
@@ -68,6 +69,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
68
69
/// </code>
69
70
/// </summary>
70
71
[ AttributeUsage ( AttributeTargets . Field , AllowMultiple = true , Inherited = false ) ]
72
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
71
73
public sealed class AlsoNotifyChangeForAttribute : Attribute
72
74
{
73
75
/// <summary>
Original file line number Diff line number Diff line change 4
4
5
5
using System ;
6
6
using System . ComponentModel ;
7
+ using System . Diagnostics ;
7
8
8
9
namespace CommunityToolkit . Mvvm . ComponentModel ;
9
10
@@ -24,6 +25,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
24
25
/// </para>
25
26
/// </summary>
26
27
[ AttributeUsage ( AttributeTargets . Class , AllowMultiple = false , Inherited = false ) ]
28
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
27
29
public sealed class INotifyPropertyChangedAttribute : Attribute
28
30
{
29
31
/// <summary>
Original file line number Diff line number Diff line change 4
4
5
5
using System ;
6
6
using System . ComponentModel ;
7
+ using System . Diagnostics ;
7
8
8
9
namespace CommunityToolkit . Mvvm . ComponentModel ;
9
10
@@ -26,6 +27,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
26
27
/// And with this, the same APIs from <see cref="ObservableObject"/> will be available on this type as well.
27
28
/// </summary>
28
29
[ AttributeUsage ( AttributeTargets . Class , AllowMultiple = false , Inherited = false ) ]
30
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
29
31
public sealed class ObservableObjectAttribute : Attribute
30
32
{
31
33
}
Original file line number Diff line number Diff line change 4
4
5
5
using System ;
6
6
using System . ComponentModel ;
7
+ using System . Diagnostics ;
7
8
8
9
namespace CommunityToolkit . Mvvm . ComponentModel ;
9
10
@@ -51,6 +52,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
51
52
/// source field name will be converted to uppercase (eg. <c>isEnabled</c> to <c>IsEnabled</c>).
52
53
/// </remarks>
53
54
[ AttributeUsage ( AttributeTargets . Field , AllowMultiple = false , Inherited = false ) ]
55
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
54
56
public sealed class ObservablePropertyAttribute : Attribute
55
57
{
56
58
}
Original file line number Diff line number Diff line change 3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
using System ;
6
+ using System . Diagnostics ;
6
7
7
8
namespace CommunityToolkit . Mvvm . ComponentModel ;
8
9
@@ -40,6 +41,7 @@ namespace CommunityToolkit.Mvvm.ComponentModel;
40
41
/// If this condition is not met, the code will fail to build.
41
42
/// </remarks>
42
43
[ AttributeUsage ( AttributeTargets . Class , AllowMultiple = false , Inherited = false ) ]
44
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
43
45
public sealed class ObservableRecipientAttribute : Attribute
44
46
{
45
47
}
Original file line number Diff line number Diff line change 3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
using System ;
6
+ using System . Diagnostics ;
6
7
using System . Windows . Input ;
7
8
8
9
namespace CommunityToolkit . Mvvm . Input ;
@@ -60,6 +61,7 @@ namespace CommunityToolkit.Mvvm.Input;
60
61
/// </para>
61
62
/// </summary>
62
63
[ AttributeUsage ( AttributeTargets . Method , AllowMultiple = false , Inherited = false ) ]
64
+ [ Conditional ( "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" ) ]
63
65
public sealed class ICommandAttribute : Attribute
64
66
{
65
67
/// <summary>
You can’t perform that action at this time.
0 commit comments