Пример #1
0
        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;
        }
Пример #2
0
 public static bool IsHashedFileValid(HashedFiles hash)
 {
     return hash.Hash == HashBytes(ASCIIEncoding.ASCII.GetBytes(hash.AssemblyPath));
 }