How to change wrapper class name?

Topics: User Forum
Feb 6, 2007 at 6:18 AM
Hi,
I'd like to know, whether there is an option to change auto-generated wrapper class name.
Example:
I have a public Class1 in Class1.aspx. I'd like to have a resource file with the same name, i.e. Class1.resx.
The tool generates a wrapper Class1 as internal class so there is a conflict in class access modifiers.
I'd like to have an ability to change generated wrapper class name.

Your tool is really awesome, thanks.
--
Alexey
Coordinator
Feb 6, 2007 at 1:34 PM
In web projects, you have to place resource files in to App_GlobalResources folder otherwise they may not work correctly. Once in that folder, you can refer to resource entries using Resources namespace (ie: Resources.Class1.EntryName)

Feb 7, 2007 at 11:52 AM
Hi,

Yes, I agree it works in Web projects case, but what to do when I have a class library project?
Thanks.
--
Alexey
Coordinator
Feb 13, 2007 at 6:08 PM
Alexey,

You can enter your own custom namespace for the class in the file properties for the resource file. This is not possible with web sites though, and I think the class name will still be same but since it will be under a different namespace so there should be no more conflict.

Thanks,
Bertan