Skip to content

Commit

Permalink
Make YamlDocument and YamlStream serializable.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaubry committed Sep 5, 2014
1 parent 2d08642 commit 8ac276d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -18,6 +18,10 @@ The most up-to-date version can always be found in the following NuGet packages:

# Changelog

## Version 3.3.0

* Make types in YamlDotNet.RepresentationModel serializable.

## Version 3.2.1

* Fix AnchorNotFoundException when another exception occurs during deserialization.
Expand Down
3 changes: 2 additions & 1 deletion YamlDotNet/RepresentationModel/YamlDocument.cs
@@ -1,5 +1,5 @@
// This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry and contributors
// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Antoine Aubry and contributors

// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -31,6 +31,7 @@ namespace YamlDotNet.RepresentationModel
/// <summary>
/// Represents an YAML document.
/// </summary>
[Serializable]
public class YamlDocument
{
/// <summary>
Expand Down
4 changes: 3 additions & 1 deletion YamlDotNet/RepresentationModel/YamlStream.cs
@@ -1,5 +1,5 @@
// This file is part of YamlDotNet - A .NET library for YAML.
// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry and contributors
// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Antoine Aubry and contributors

// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
Expand All @@ -19,6 +19,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

using System;
using System.Collections.Generic;
using System.IO;
using YamlDotNet.Core;
Expand All @@ -29,6 +30,7 @@ namespace YamlDotNet.RepresentationModel
/// <summary>
/// Represents an YAML stream.
/// </summary>
[Serializable]
public class YamlStream : IEnumerable<YamlDocument>
{
private readonly IList<YamlDocument> documents = new List<YamlDocument>();
Expand Down

0 comments on commit 8ac276d

Please sign in to comment.