Skip to content

Commit

Permalink
Added named order constructor to YamlMemberAttribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Bienz committed Jul 2, 2022
1 parent f3b1c7b commit 9e89c01
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SharpYaml/Serialization/YamlMemberAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ public YamlMemberAttribute(string name)
this.Name = name;
}

/// <summary>
/// Initializes a new instance of the <see cref="YamlMemberAttribute"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="order">The order.</param>
public YamlMemberAttribute(string name, int order)
{
this.Name = name;
this.Order = order;
}

/// <summary>
/// Specify the way to store a property or field of some class or structure.
/// </summary>
Expand Down

0 comments on commit 9e89c01

Please sign in to comment.