First, use the decompilation tool to view resources in the Assembly.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/21312254H-0.png "title =" Capture. PNG "/>
The Code is as follows:
Assembly myAssembly; myAssembly = System. reflection. assembly. load ("SQLEditor2"); // do not add the Assembly extension System. resources. resourceManager myManager = new System. resources. resourceManager ("SQLEditor2.FrmEditor", myAssembly); // do not add. resourcesvar icon = (System. drawing. icon) myManager. getObject ("$ this. icon "); using (var f = File. create ("C: \ $ this. icon. ico ") {icon. save (f);} string [] BMP names = new string [] {"tsbsel. image "," toolStripButton1.Image "," toolStripSplitButton1.Image "}; System. drawing. image myImage; foreach (string BMP name in BMP names) {myImage = (System. drawing. image) myManager. getObject (BMP name); myImage. save (String. format ("C :\{ 02.16.bmp", BMP name ));}
In this way, the Icon and Bitmap in the Assembly can be obtained. The string-type content can be obtained directly from the decompilation tool.
This article from the "only text cut through time and space" blog, please be sure to keep this source http://arthurshayne.blog.51cto.com/3491820/1213580