Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / C#

A Resource Hacker in C# .NET

Rate me:
Please Sign up or sign in to vote.
4.46/5 (14 votes)
6 Mar 2012CPOL6 min read 47.1K   2.1K   37  
How to get into a .NET DLL file and extract its types, show their information, extract the members of each type, and even invoke them.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyResourceHacker", "MyResourceHacker\MyResourceHacker.csproj", "{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleDll", "SampleDll\SampleDll.csproj", "{50997FA3-04BE-4675-A9A4-EC4E169893B4}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Debug|Any CPU.ActiveCfg = Debug|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Debug|x86.ActiveCfg = Debug|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Debug|x86.Build.0 = Debug|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Release|Any CPU.ActiveCfg = Release|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Release|Mixed Platforms.Build.0 = Release|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Release|x86.ActiveCfg = Release|x86
		{FD6DA377-F92A-4CFB-8CD5-A6F41E00ED94}.Release|x86.Build.0 = Release|x86
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Debug|x86.ActiveCfg = Debug|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Release|Any CPU.Build.0 = Release|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{50997FA3-04BE-4675-A9A4-EC4E169893B4}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Iran (Islamic Republic of) Iran (Islamic Republic of)
I'm a software engineer specialized in .NET framework. I've developed applications in such technologies as Console Applications, Windows Forms, WPF, Web Forms, MVC, Silverlight and Xamarin Forms. I also create and publish my multimedia courses at provid.ir and softdevwithmorteza.wordpress.com.
Some of my courses inclue Design Patterns in C#, OOP Principles, SOLID Principles, High Quality Coding Principles, Anti-patterns, Refactoring, TDD, DDD, .NET Core and so on.

Comments and Discussions