File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -35,5 +35,5 @@ public sealed class INotifyPropertyChangedAttribute : Attribute
35
35
/// the two <see cref="ObservableObject.OnPropertyChanged(PropertyChangedEventArgs)"/> overloads will be generated.
36
36
/// The default value is <see langword="true"/>.
37
37
/// </summary>
38
- public bool IncludeAdditionalHelperMethods { get ; set ; } = true ;
38
+ public bool IncludeAdditionalHelperMethods { get ; init ; } = true ;
39
39
}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public sealed class ICommandAttribute : Attribute
69
69
/// generated command can be executed at any given time. The referenced member needs to return
70
70
/// a <see cref="bool"/> value, and has to have a signature compatible with the target command.
71
71
/// </summary>
72
- public string ? CanExecute { get ; set ; }
72
+ public string ? CanExecute { get ; init ; }
73
73
74
74
/// <summary>
75
75
/// Gets or sets a value indicating whether or not to allow concurrent executions for an asynchronous command.
@@ -78,5 +78,5 @@ public sealed class ICommandAttribute : Attribute
78
78
/// when an execution is invoked while a previous one is still running. It is the same as creating an instance of
79
79
/// these command types with a constructor such as <see cref="AsyncRelayCommand(Func{System.Threading.Tasks.Task}, bool)"/>.
80
80
/// </summary>
81
- public bool AllowConcurrentExecutions { get ; set ; } = true ;
81
+ public bool AllowConcurrentExecutions { get ; init ; } = true ;
82
82
}
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+ // See the LICENSE file in the project root for more information.
4
+
5
+ #if ! NET6_0_OR_GREATER
6
+
7
+ using System . ComponentModel ;
8
+
9
+ namespace System . Runtime . CompilerServices ;
10
+
11
+ /// <summary>
12
+ /// Reserved to be used by the compiler for tracking metadata.
13
+ /// This class should not be used by developers in source code.
14
+ /// </summary>
15
+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
16
+ internal static class IsExternalInit
17
+ {
18
+ }
19
+
20
+ #endif
You can’t perform that action at this time.
0 commit comments