public void Write() { using (var writer = new StreamWriter(custompathashespath)) using (var csv = new CsvWriter(writer, CultureInfo.InvariantCulture)) { csv.WriteRecords(CHashdumpDict.Select(_ => new HashDump { Path = _.Key, HashInt = _.Value })); } }
public ulong RegisterCustomPath(string path) { var hashint = FNV1A64HashAlgorithm.HashString(path); if (!CHashdumpDict.ContainsKey(path) && !HashdumpDict.ContainsKey(path)) { CHashdumpDict.Add(path, hashint); } return(hashint); }