Esempio n. 1
0
        private bool TryOpenAssemblyStream(string name, [NotNullWhen(true)] out Stream?asm, out Stream?pdb)
        {
            asm = null;
            pdb = null;

            if (!_fileApi.TryOpen($"{name}.dll", out asm))
            {
                return(false);
            }

            _fileApi.TryOpen($"{name}.pdb", out pdb);
            return(true);
        }
Esempio n. 2
0
            public bool TryGetFile(ResourcePath relPath, [NotNullWhen(true)] out Stream?stream)
            {
                if (_api.TryOpen($"{_prefix}{relPath}", out stream))
                {
                    return(true);
                }

                stream = null;
                return(false);
            }