#region License // Copyright 2005-2019 Paul Kohler (https://github.com/paulkohler/minisqlquery). All rights reserved. // This source code is made available under the terms of the GNU Lesser General Public License v3.0 // https://github.com/paulkohler/minisqlquery/blob/master/LICENSE #endregion using System.IO; using System.Text; namespace MiniSqlQuery.Core { /// /// A that allows the setting of the . /// public class StringWriterWithEncoding : StringWriter { /// /// The _encoding. /// private readonly Encoding _encoding; /// /// Initializes a new instance of the class. /// /// The encoding to use, e.g. Encoding.UTF8. public StringWriterWithEncoding(Encoding encoding) { _encoding = encoding; } /// /// Gets the in which the output is written. /// /// The encoding type. /// /// The Encoding in which the output is written. /// public override Encoding Encoding { get { return _encoding; } } } }