I need to use a byte[] as a key in a Dictionary. Since byte[] doesn\'t override the default GetHashCode method, two sepa
byte[]
Dictionary
GetHashCode
Could you convert the byte[] to a string and use that as the key?
Something like:
ASCIIEncoding enc = new ASCIIEncoding(); byte[] input; string demo = new string(enc.GetChars(input)); byte[] decode = enc.GetBytes(demo.ToCharArray());