disposedValue changed to _disposedValue

Boilerplate code didn't have _
This commit is contained in:
Louis DeJardin 2015-09-25 12:37:02 -07:00
parent c42dace9e6
commit f740616573
3 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Server.Kestrel
public class Disposable : IDisposable
{
private Action _dispose;
private bool disposedValue = false; // To detect redundant calls
private bool _disposedValue = false; // To detect redundant calls
public Disposable(Action dispose)
{
@ -20,7 +20,7 @@ namespace Microsoft.AspNet.Server.Kestrel
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
if (!_disposedValue)
{
if (disposing)
{
@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Server.Kestrel
}
_dispose = null;
disposedValue = true;
_disposedValue = true;
}
}

View File

@ -51,7 +51,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
/// <summary>
/// This is part of implementing the IDisposable pattern.
/// </summary>
private bool disposedValue = false; // To detect redundant calls
private bool _disposedValue = false; // To detect redundant calls
/// <summary>
/// Called to take a block from the pool.
@ -128,7 +128,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
if (!_disposedValue)
{
if (disposing)
{
@ -144,7 +144,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
// N/A: set large fields to null.
disposedValue = true;
_disposedValue = true;
}
}

View File

@ -39,7 +39,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
/// <summary>
/// Part of the IDisposable implementation
/// </summary>
private bool disposedValue = false; // To detect redundant calls
private bool _disposedValue = false; // To detect redundant calls
public static MemoryPoolSlab2 Create(int length)
{
@ -59,7 +59,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)
if (!_disposedValue)
{
if (disposing)
{
@ -73,7 +73,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
// set large fields to null.
Array = null;
disposedValue = true;
_disposedValue = true;
}
}