mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-09-23 07:05:38 +00:00
Fix build for old .NET
This commit is contained in:
@@ -24,7 +24,11 @@ namespace SabreTools.IO.Writers
|
||||
/// </summary>
|
||||
public IniWriter(Stream stream, Encoding encoding)
|
||||
{
|
||||
#if NET20 || NET35 || NET40
|
||||
sw = new StreamWriter(stream, encoding);
|
||||
#else
|
||||
sw = new StreamWriter(stream, encoding, 1024, leaveOpen: true);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user