IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
VfsAssemblyResourceDirectory.cs
Go to the documentation of this file.
1using System;
2using System.Reflection;
3
4namespace IKVM.Runtime.Vfs
5{
6
10 internal sealed class VfsAssemblyResourceDirectory : VfsDirectory
11 {
12
13 readonly Assembly assembly;
14
20 internal VfsAssemblyResourceDirectory(VfsContext context, Assembly assembly) :
21 base(context)
22 {
23 this.assembly = assembly ?? throw new ArgumentNullException(nameof(assembly));
24 }
25
31 public override VfsEntry GetEntry(string name)
32 {
33 return assembly.GetManifestResourceInfo(name) != null ? new VfsAssemblyResourceFile(Context, assembly, name) : null;
34 }
35
40 public override string[] List()
41 {
42 return assembly.GetManifestResourceNames();
43 }
44
45 }
46
47}
IKVM.Reflection.Assembly Assembly