init
This commit is contained in:
23
Common/DTS.Common.Serialization/InvariantStreamWriter.cs
Normal file
23
Common/DTS.Common.Serialization/InvariantStreamWriter.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace DTS.Serialization
|
||||
{
|
||||
public class InvariantStreamWriter : System.IO.StreamWriter
|
||||
{
|
||||
private readonly IFormatProvider _formatProvider;
|
||||
|
||||
public InvariantStreamWriter(string path)
|
||||
: base(path)
|
||||
{
|
||||
_formatProvider = System.Globalization.CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
public InvariantStreamWriter(string path, bool bAppend)
|
||||
: base(path, bAppend)
|
||||
{
|
||||
_formatProvider = System.Globalization.CultureInfo.InvariantCulture;
|
||||
}
|
||||
|
||||
public override IFormatProvider FormatProvider => _formatProvider;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user