Resolving warnings

This commit is contained in:
Chris Cameron
2017-08-25 17:01:20 -04:00
parent 2fa2972a52
commit ce73578609
3 changed files with 6 additions and 4 deletions

View File

@@ -657,7 +657,7 @@ namespace ICD.Common.Utils.Extensions
if (extends == null) if (extends == null)
throw new ArgumentNullException("extends"); throw new ArgumentNullException("extends");
return extends.Where(e => e.HasValue).Select(e => e.Value); return extends.OfType<T>();
} }
/// <summary> /// <summary>

View File

@@ -15,7 +15,7 @@ namespace ICD.Common.Utils.IO
public TextWriter WrappedTextWriter { get { return m_TextWriter; } } public TextWriter WrappedTextWriter { get { return m_TextWriter; } }
private bool disposed = false; private bool m_Disposed;
/// <summary> /// <summary>
/// Constructor. /// Constructor.
@@ -42,14 +42,14 @@ namespace ICD.Common.Utils.IO
protected void Dispose(bool disposing) protected void Dispose(bool disposing)
{ {
if (disposed) if (m_Disposed)
return; return;
if (disposing) if (disposing)
{ {
m_TextWriter.Dispose(); m_TextWriter.Dispose();
} }
disposed = true; m_Disposed = true;
} }
} }
} }

View File

@@ -1,4 +1,5 @@
using System; using System;
using ICD.Common.Properties;
namespace ICD.Common.Utils namespace ICD.Common.Utils
{ {
@@ -10,6 +11,7 @@ namespace ICD.Common.Utils
/// <summary> /// <summary>
/// Returns true if this instance has been disposed. /// Returns true if this instance has been disposed.
/// </summary> /// </summary>
[PublicAPI]
bool IsDisposed { get; } bool IsDisposed { get; }
} }
} }