How to Read from LocalResources in class Global area

Posted by Nasser Hajloo on Stack Overflow See other posts from Stack Overflow or by Nasser Hajloo
Published on 2010-05-26T05:11:05Z Indexed on 2010/05/26 5:41 UTC
Read the original article Hit count: 223

Filed under:
|
|
|
|

I have a class name xxxx and a resource whichthe class read from it to set some string. Everything is fine and nothing goes wrong.

The problem is that I have some Constant Global String which I set them in global area like

 public partial class ExampleDocument : ClassBase
 {
 const string TheProblem = "I can not read this string from resources cause here Methods do not work";
 #region Method
    ...
 #endregion
 }

The question is, How to read this strings frrom Rersource File.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET