mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-14 04:05:04 +00:00
perf: Disposing text readers
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#if SIMPLSHARP
|
||||
using System;
|
||||
#if SIMPLSHARP
|
||||
using Crestron.SimplSharp.CrestronIO;
|
||||
|
||||
#else
|
||||
using System.IO;
|
||||
#endif
|
||||
|
||||
namespace ICD.Common.Utils.IO
|
||||
{
|
||||
public class IcdTextReader
|
||||
public class IcdTextReader : IDisposable
|
||||
{
|
||||
private readonly TextReader m_TextReader;
|
||||
|
||||
@@ -17,5 +17,10 @@ namespace ICD.Common.Utils.IO
|
||||
{
|
||||
m_TextReader = textReader;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
m_TextReader.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user