mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
Resolving warnings
This commit is contained in:
parent
2fa2972a52
commit
ce73578609
3 changed files with 6 additions and 4 deletions
|
|
@ -657,7 +657,7 @@ namespace ICD.Common.Utils.Extensions
|
|||
if (extends == null)
|
||||
throw new ArgumentNullException("extends");
|
||||
|
||||
return extends.Where(e => e.HasValue).Select(e => e.Value);
|
||||
return extends.OfType<T>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace ICD.Common.Utils.IO
|
|||
|
||||
public TextWriter WrappedTextWriter { get { return m_TextWriter; } }
|
||||
|
||||
private bool disposed = false;
|
||||
private bool m_Disposed;
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
|
|
@ -42,14 +42,14 @@ namespace ICD.Common.Utils.IO
|
|||
|
||||
protected void Dispose(bool disposing)
|
||||
{
|
||||
if (disposed)
|
||||
if (m_Disposed)
|
||||
return;
|
||||
|
||||
if (disposing)
|
||||
{
|
||||
m_TextWriter.Dispose();
|
||||
}
|
||||
disposed = true;
|
||||
m_Disposed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using ICD.Common.Properties;
|
||||
|
||||
namespace ICD.Common.Utils
|
||||
{
|
||||
|
|
@ -10,6 +11,7 @@ namespace ICD.Common.Utils
|
|||
/// <summary>
|
||||
/// Returns true if this instance has been disposed.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
bool IsDisposed { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue