From 9e89c019638025224e84d6fe919699ca75c6aeb2 Mon Sep 17 00:00:00 2001 From: Jared Bienz Date: Sat, 2 Jul 2022 14:20:32 -0500 Subject: [PATCH] Added named order constructor to YamlMemberAttribute. --- src/SharpYaml/Serialization/YamlMemberAttribute.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SharpYaml/Serialization/YamlMemberAttribute.cs b/src/SharpYaml/Serialization/YamlMemberAttribute.cs index 8af7dd5..cfe497a 100644 --- a/src/SharpYaml/Serialization/YamlMemberAttribute.cs +++ b/src/SharpYaml/Serialization/YamlMemberAttribute.cs @@ -80,6 +80,17 @@ public YamlMemberAttribute(string name) this.Name = name; } + /// + /// Initializes a new instance of the class. + /// + /// The name. + /// The order. + public YamlMemberAttribute(string name, int order) + { + this.Name = name; + this.Order = order; + } + /// /// Specify the way to store a property or field of some class or structure. ///