From 646fc5e9516d8a9760bea3cbd27506b32b3a8446 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 7 Jun 2016 01:26:03 -0400 Subject: [PATCH] Add constructor for CodeEnumerationElement --- .../SourceCode/CodeElements/CodeEnumerationElement.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CSharp/Plugins/UniversalEditor.Plugins.SoftwareDevelopment/ObjectModels/SourceCode/CodeElements/CodeEnumerationElement.cs b/CSharp/Plugins/UniversalEditor.Plugins.SoftwareDevelopment/ObjectModels/SourceCode/CodeElements/CodeEnumerationElement.cs index 77c55102..4aafacda 100644 --- a/CSharp/Plugins/UniversalEditor.Plugins.SoftwareDevelopment/ObjectModels/SourceCode/CodeElements/CodeEnumerationElement.cs +++ b/CSharp/Plugins/UniversalEditor.Plugins.SoftwareDevelopment/ObjectModels/SourceCode/CodeElements/CodeEnumerationElement.cs @@ -61,6 +61,13 @@ namespace UniversalEditor.ObjectModels.SourceCode.CodeElements } public class CodeEnumerationElement : CodeElement, INamedCodeElement, IAccessModifiableCodeElement { + public CodeEnumerationElement(string name = null) + { + if (name == null) + name = String.Empty; + mvarName = name; + } + private string mvarName = String.Empty; public string Name { get { return mvarName; } set { mvarName = value; } }