mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
Created S# .sln and moved project to src folder
This commit is contained in:
32
ICD.Common/Utils/IO/IcdStringWriter.cs
Normal file
32
ICD.Common/Utils/IO/IcdStringWriter.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Text;
|
||||
#if SIMPLSHARP
|
||||
using Crestron.SimplSharp.CrestronIO;
|
||||
#else
|
||||
using System.IO;
|
||||
#endif
|
||||
|
||||
namespace ICD.Common.Utils.IO
|
||||
{
|
||||
public class IcdStringWriter : IcdTextWriter
|
||||
{
|
||||
public StringWriter WrappedStringWriter { get { return WrappedTextWriter as StringWriter; } }
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
/// <param name="stringWriter"></param>
|
||||
public IcdStringWriter(StringWriter stringWriter)
|
||||
: base(stringWriter)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructor.
|
||||
/// </summary>
|
||||
/// <param name="stringBuilder"></param>
|
||||
public IcdStringWriter(StringBuilder stringBuilder)
|
||||
: this(new StringWriter(stringBuilder))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user