Visual C# 언어 개념
코드: 어셈블리에서 리소스 이름 찾기(Visual C#)
이 예제에서는 어셈블리에 있는 모든 리소스 이름이 포함된 문자열을 만듭니다.
예제
System.Reflection.Assembly thisExe; thisExe = System.Reflection.Assembly.GetExecutingAssembly(); string [] resources = thisExe.GetManifestResourceNames(); string list = ""; // Build the string of resources. foreach (string resource in resources) list += resource + "\r\n";
코드 컴파일
코드를 복사한 다음 콘솔 응용 프로그램의 Main 메서드에 붙여넣습니다.