I've a list of arbitrary strings. I would like to convert these to a hexadecimal color code.
The code should not be random, as it is essential that the method must return the same color code each time I convert the same string.
SOLUTION:
public string GetColorCode(string value)
{
var i = value.GetHashCode() & 0x00FFFFFF;
return i.ToString("X6");
}