ResourceManager rm = new ResourceManager("WindowsForms.Properties.Resources", Assembly.GetExecutingAssembly());
var text = rm.GetString("as");
提取字符串资源:
String s = ( ( String ) rm.GetString ( "MyStr" ) ) ;
提取图标资源:
Icon icoDemo = ( ( Icon ) rm.GetObject ( "demo.ico" ) ) ;
提取图象资源:
Image a = ( ( Image ) ( rm.GetObject ( "ok-off.png" ) ) ) ;
标签:文件,String,GetString,GetObject,rm,Icon,写法,资源,winform From: https://www.cnblogs.com/aashui/p/16790675.html