Yes I have overloaded the ToString method. Below are the methods in my CustomColor class. My ToString method was incorrect!
// This method is incorrect and ...,
public new string ToString()
{
return string.Format("{0:X2}{1:X2}{2:X2}", \_Red, \_Green, \_Blue);
}
// Should be...
public override string ToString()
{
return string.Format("{0:X2}{1:X2}{2:X2}", \_Red, \_Green, \_Blue);
}
Thanks for the help! Mark
modified on Monday, March 1, 2010 11:53 AM