Skip to content

Commit bc1524d

Browse files
Make properties settable by inheritors.
1 parent a5da977 commit bc1524d

File tree

1 file changed

+2
-2
lines changed
  • src/toolkit/Community.VisualStudio.Toolkit.Shared/Commands

1 file changed

+2
-2
lines changed

src/toolkit/Community.VisualStudio.Toolkit.Shared/Commands/BaseCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ namespace Community.VisualStudio.Toolkit
2929
/// <summary>
3030
/// The command object associated with the command ID (GUID/ID).
3131
/// </summary>
32-
public OleMenuCommand Command { get; private set; } = null!; // This property is initialized in `InitializeAsync`, so it's never actually null.
32+
public OleMenuCommand Command { get; protected set; } = null!; // This property is initialized in `InitializeAsync`, so it's never actually null.
3333

3434
/// <summary>
3535
/// The package class that initialized this class.
3636
/// </summary>
37-
public AsyncPackage Package { get; private set; } = null!; // This property is initialized in `InitializeAsync`, so it's never actually null.
37+
public AsyncPackage Package { get; protected set; } = null!; // This property is initialized in `InitializeAsync`, so it's never actually null.
3838

3939
/// <summary>
4040
/// Initializes the command. This method must be called from the <see cref="AsyncPackage.InitializeAsync"/> method for the command to work.

0 commit comments

Comments
 (0)