Implemented initializing the ResourceLoader using the class name as the parameter

This commit is contained in:
Christian Resma Helle
2012-11-19 22:10:59 +01:00
parent 4519db6c5d
commit f3f862624b
5 changed files with 19 additions and 8 deletions
@@ -52,7 +52,7 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.CustomTool
var resourceLoaderField = new CodeMemberField(resourceLoaderType, "resourceLoader")
{
Attributes = MemberAttributes.Private | MemberAttributes.Static | MemberAttributes.Final,
InitExpression = new CodeObjectCreateExpression(resourceLoaderType)
InitExpression = new CodeObjectCreateExpression(resourceLoaderType, new CodePrimitiveExpression(className))
};
targetClass.Members.Add(resourceLoaderField);