1 // Compiler options: -linkresource:test-513.cs -linkresource:test-512.cs -linkresource:./test-511.cs,test
5 using System
.Reflection
;
9 public static int Main ()
11 Assembly a
= Assembly
.GetExecutingAssembly ();
12 string[] resourceNames
= a
.GetManifestResourceNames ();
13 if (resourceNames
.Length
!= 3)
15 if (resourceNames
[0] != "test-513.cs")
17 if (resourceNames
[1] != "test-512.cs")
19 if (resourceNames
[2] != "test")
21 FileStream f
= a
.GetFile ("test-513.cs");
24 f
= a
.GetFile ("test-512.cs");
27 f
= a
.GetFile ("test-511.cs");
30 f
= a
.GetFile ("test");
33 Stream s
= a
.GetManifestResourceStream ("test-513.cs");
36 s
= a
.GetManifestResourceStream ("test-512.cs");
39 s
= a
.GetManifestResourceStream ("test");
42 s
= a
.GetManifestResourceStream ("test-511.cs");