namespace PackageManager; public class PackageRegistry { private readonly IDictionary _byName = new Dictionary(StringComparer.Ordinal); public int Count => _byName.Count; public IEnumerable Names => _byName.Keys; public Package? this[string name] => _byName.TryGetValue(name, out var p) ? p : null; /* your code here */ }