Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ public void Dispose()
/// Release all the resources.
/// </summary>
/// <param name="disposing">If true, release all managed resources.</param>
protected void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ public void Dispose()
/// </summary>
/// <param name="disposing">Whether method is called
/// from Dispose or destructor</param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public void Dispose()
/// </summary>
/// <param name="disposing">Whether method is called
/// from Dispose or destructor</param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2069,7 +2069,7 @@ public void Dispose()
/// Internal dispose method which does the actual disposing.
/// </summary>
/// <param name="disposing">Whether called from dispose or finalize.</param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public void Dispose()
/// <summary>
/// </summary>
/// <param name="disposing"></param>
protected void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ public void Dispose()
/// <summary>
/// </summary>
/// <param name="disposing"></param>
protected void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (!disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ public void Dispose()
/// Internal dispose method which does the actual disposing.
/// </summary>
/// <param name="disposing">Whether called from dispose or finalize.</param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public void Dispose()
/// <summary>
/// </summary>
/// <param name="disposing"></param>
protected void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (!disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public void Dispose()
/// <param name="disposing">
/// if true, release all the managed objects.
/// </param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public void Dispose()
/// </summary>
/// <param name="disposing">If method is called from
/// disposing of destructor</param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public void Dispose()
GC.SuppressFinalize(this);
}

private void Dispose(bool isDisposing)
protected virtual void Dispose(bool isDisposing)
{
// Managed objects should not be deleted when this is called via the finalizer
// because they may have been collected already. To prevent leaking the marshalledBuffer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ public void Dispose()
GC.SuppressFinalize(this);
}

private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (_disposed)
return;
Expand Down
2 changes: 1 addition & 1 deletion src/System.Management.Automation/utils/PlatformInvokes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public void Dispose()
/// Dispose.
/// </summary>
/// <param name="disposing"></param>
private void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down