Articles → .NET → Read resource file in C#

Read resource file in C#






What is a resource file?





How to create resource file in visual studio?









Click to Enlarge


Adding data in resource file





Click to Enlarge


Reading resource file in C#




  System.Resources.ResourceManager rm = new System.Resources.ResourceManager("Reading_resource_file.Resource1", System.Reflection.Assembly.GetExecutingAssembly());
            Console.WriteLine(rm.GetString("Name"));
            Console.WriteLine(rm.GetString("URL"));













Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, January 31, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250