public static uint MakeHash(this Type Type)
        {
            if (Type == null)
            {
                return(0);
            }

            return(CRC32.CalculateHash(Encoding.ASCII.GetBytes(Type.FullName)));
        }
Example #2
0
 public override int GetHashCode()
 {
     return((int)CRC32.CalculateHash(System.BitConverter.GetBytes(value)));
 }
 public static uint GetHash(string FilePath)
 {
     return(CRC32.CalculateHash(File.ReadAllBytes(FilePath)));
 }