remove sealed from class and forgot to add props, ooops

This commit is contained in:
2018-07-24 14:25:38 +02:00
parent 26344c42f6
commit 1d75d8553b
@@ -57,7 +57,7 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool
{ {
IsClass = true, IsClass = true,
IsPartial = true, IsPartial = true,
TypeAttributes = TypeAttributes.Sealed | (classAccessibility ?? TypeAttributes.Public), TypeAttributes = (classAccessibility ?? TypeAttributes.Public),
Attributes = MemberAttributes.Public | MemberAttributes.Static | MemberAttributes.Final Attributes = MemberAttributes.Public | MemberAttributes.Static | MemberAttributes.Final
}; };
@@ -153,7 +153,6 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool
Name = name, Name = name,
Attributes = MemberAttributes.Public, Attributes = MemberAttributes.Public,
HasGet = true, HasGet = true,
HasSet = true,
Type = new CodeTypeReference(typeof (string)) Type = new CodeTypeReference(typeof (string))
}; };
@@ -166,6 +165,8 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool
new CodeFieldReferenceExpression(null, "resourceLoader"), new CodeFieldReferenceExpression(null, "resourceLoader"),
"GetString", "GetString",
new CodePrimitiveExpression(key)))); new CodePrimitiveExpression(key))));
targetClass.Members.Add(property);
} }
codeNamespace.Types.Add(targetClass); codeNamespace.Types.Add(targetClass);