That's the intended use of resources :-)

        Diego

>Does it make sense to use a .resx file to store Exception strings that can
>be accessed from business layer classes?
>Or is there a better option?
>e.g.
>
>in the .resx I have an entry like
>
>name=Res_ExceptionStateRequired value=Some exception text
>
>if(this.State == null)
> throw new ApplicationException(ResourceManager.GetString
>("Res_ExceptionStateRequired"));

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to