private void AddHash(string hash) { string tag = HashIndex.TypeOfHash(hash) == HashIndex.HashType.Path ? "paths" : "others"; Idstring ids; if (HashIndex.AddHash(hash, out ids, tag)) { error_output.Write("Added hash {0}\n", hash); } }