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); }
public bool TryGetFile(ResourcePath relPath, [NotNullWhen(true)] out Stream?stream) { if (_api.TryOpen($"{_prefix}{relPath}", out stream)) { return(true); } stream = null; return(false); }