public IEnumerable <IpAddress> GetAll() { if (!File.Exists(GetPath())) { return(new List <IpAddress>()); } lock (obj) { var lines = File.ReadAllLines(GetPath()); return(lines.Select(l => IpAddress.Deserialize(l))); } }