IKVM.Internal.VirtualFileSystem.Open C# (CSharp) Method

Open() static private method

static private Open ( string name, System fileMode, System fileAccess ) : System.IO.Stream
name string
fileMode System
fileAccess System
return System.IO.Stream
        internal static System.IO.Stream Open(string name, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess)
        {
            #if FIRST_PASS
            return null;
            #else
            if (fileMode != System.IO.FileMode.Open || fileAccess != System.IO.FileAccess.Read)
            {
                throw new System.IO.IOException("vfs is read-only");
            }
            VfsFile entry = GetVfsEntry(name) as VfsFile;
            if (entry == null)
            {
                throw new System.IO.FileNotFoundException("File not found");
            }
            return entry.Open();
            #endif
        }