Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs')
-rw-r--r--Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs b/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
index ff2f08c..7b5f8ce 100644
--- a/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
+++ b/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
@@ -31,7 +31,11 @@ namespace Newtonsoft.Json.Bson
public void Close()
{
+#if !NETFX_CORE
_writer.Close();
+#else
+ _writer.Dispose();
+#endif
}
public void WriteToken(BsonToken t)