Exemple #1
0
        public override Assembly LoadAssemblyFromPath(string path)
        {
            Stream stream = VirtualFilesystem.GetFile(path);

            if (stream == null)
            {
                throw new FileNotFoundException(
                          string.Format("could not find assembly: {0} (check the {1})",
                                        path, VirtualFilesystem.Name()
                                        )
                          );
            }
            return(new AssemblyPart().Load(stream));
        }
Exemple #2
0
        public override Stream OpenInputFileStream(string path)
        {
            Stream result = VirtualFilesystem.GetFile(GetFullPath(path));

            if (result == null)
            {
                throw new IOException(
                          String.Format("file {0} not found (check the {1})",
                                        path, VirtualFilesystem.Name()
                                        )
                          );
            }
            return(result);
        }
Exemple #3
0
 public override bool FileExists(string path)
 {
     return(VirtualFilesystem.GetFile(path) != null);
 }