public static uint GetMemberID(MemberInfo Member) { KeyAttribute keyAttr = Member.GetAttribute <KeyAttribute>(); if (keyAttr == null) { return(CRC32.CalculateHash(Encoding.ASCII.GetBytes(Member.Name))); } return(keyAttr.ID); }
private static int Get(byte[] Value) { return((int)CRC32.CalculateHash(Value)); }
public override int GetHashCode() { return((int)CRC32.CalculateHash(System.Text.Encoding.ASCII.GetBytes(Value))); }