remove sealed from class and forgot to add props, ooops
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user