views:

10

answers:

1

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.

A: 

check this might help you to resolve this problem: http://msdn.microsoft.com/en-us/library/ms227982.aspx

Pranay Rana
It wasn't my Answer cause it mentioned a solution for GlobalReources. By the way I havn't much time to follow for answers, so I acept your answer. Thank you
Nasser Hadjloo
ok check the post later on may resolve your issue
Pranay Rana