public static bool TryGetHashedFile(string Hash, out HashedFiles HashedFile) { HashedFile = default(HashedFiles); foreach (HashedFiles fileInfo in Hashes.Where(x => x.Hash == Hash)) { HashedFile = fileInfo; return true; } return false; }
public static bool IsHashedFileValid(HashedFiles hash) { return hash.Hash == HashBytes(ASCIIEncoding.ASCII.GetBytes(hash.AssemblyPath)); }