mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Resolving warnings
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user