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);
@@ -32,4 +32,4 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1.*")]
[assembly: AssemblyVersion("1.0.2.*")]