Patcher.Rules.Proxies.Fields.ColorProxy.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            if (adapter is ColorAlphaAdapter)
                return string.Format("({0},{1},{2},{3})", (byte)(Red * 255), (byte)(Green * 255), (byte)(Blue * 255), (byte)(Alpha * 255));
            else
                return string.Format("({0},{1},{2})", (byte)(Red * 255), (byte)(Green * 255), (byte)(Blue * 255));
        }