Ejemplo n.º 1
0
        /// <summary>
        /// Tries to convert the given parameter value into a
        /// string hexadecimal value.
        /// Does not generates an exception, if operation fails.
        /// Note: This is a <code>static</code> function.
        /// </summary>
        /// <param name="source">ARGB instance</param>
        /// <param name="destination">String result</param>
        /// <returns>Could operation been performed</returns>
        public static bool tryARGBToString(ARGB source, out String destination)
        {
            bool Result = false;
            destination = "";

            // first, check we didn't get a null value
            Result = (source != null);
            if (source != null)
            {
                destination = source.ToString();
            }

            return Result;
        }