Hi I have the following code for calling a Resource file
public static ResourceManager m_ResourceManag er = new
ResourceManager ("SMSGeneration Tool.PatchGenTo ol",
System.Reflecti on.Assembly.Get ExecutingAssemb ly());
public static System.Resource s.ResourceManag er resources = new
System.Resource s.ResourceManag er(typeof(frmSM SGenerationTool ));
Then i use the following code to call the string from Resource file as
m_ResourceManag er.GetString("S TR_OK")
When i am calling like this, how much memory is allocated. and if i
call the same line
as m_ResourceManag er.GetString("S TR_OK")
some other place is the memory allocated again?
Please can any one tell me if the performance going to be affected.
Because i have lot of strings
like this
Is memory allocated ? If so can i put the value of the string getting
repeated in my code into global variable?
Thanks
JP
public static ResourceManager m_ResourceManag er = new
ResourceManager ("SMSGeneration Tool.PatchGenTo ol",
System.Reflecti on.Assembly.Get ExecutingAssemb ly());
public static System.Resource s.ResourceManag er resources = new
System.Resource s.ResourceManag er(typeof(frmSM SGenerationTool ));
Then i use the following code to call the string from Resource file as
m_ResourceManag er.GetString("S TR_OK")
When i am calling like this, how much memory is allocated. and if i
call the same line
as m_ResourceManag er.GetString("S TR_OK")
some other place is the memory allocated again?
Please can any one tell me if the performance going to be affected.
Because i have lot of strings
like this
Is memory allocated ? If so can i put the value of the string getting
repeated in my code into global variable?
Thanks
JP