Click here to Skip to main content
15,897,704 members
Articles / Programming Languages / C#

Generated Access to .NET Resource Strings

Rate me:
Please Sign up or sign in to vote.
4.85/5 (16 votes)
23 Jun 20038 min read 98.8K   2.2K   44  
This article provides an alternative method of accessing string resources in a C# project by generating access classes for each resource identifier.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenResourceKeys", "GenResourceKeys\GenResourceKeys.csproj", "{3E5BC4C5-7A26-4F00-A193-198ADB005EB9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp\TestApp.csproj", "{8279AC6F-8E4A-4C53-8F41-FE740247F614}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{3E5BC4C5-7A26-4F00-A193-198ADB005EB9}.Debug.ActiveCfg = Debug|.NET
		{3E5BC4C5-7A26-4F00-A193-198ADB005EB9}.Debug.Build.0 = Debug|.NET
		{3E5BC4C5-7A26-4F00-A193-198ADB005EB9}.Release.ActiveCfg = Release|.NET
		{3E5BC4C5-7A26-4F00-A193-198ADB005EB9}.Release.Build.0 = Release|.NET
		{8279AC6F-8E4A-4C53-8F41-FE740247F614}.Debug.ActiveCfg = Debug|.NET
		{8279AC6F-8E4A-4C53-8F41-FE740247F614}.Debug.Build.0 = Debug|.NET
		{8279AC6F-8E4A-4C53-8F41-FE740247F614}.Release.ActiveCfg = Release|.NET
		{8279AC6F-8E4A-4C53-8F41-FE740247F614}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Corey Frost is a software engineer with the Noetix Corporation (www.noetix.com). Prior to that he spent 10 years as a contract developer specializing in Windows applications development using C++ and MFC.

Comments and Discussions