Ejemplo n.º 1
0
        public override string ToString()
        {
            string str;

            if (IsSuccess)
            {
                str = DCCount + " Data Contracts;\n" + SCCount + " Service Contracts;\n" +
                      TimeSpan.FromSeconds((int)TotalElapsedTime.TotalSeconds) + " Generation Time.\n";
                if (SilverlightCompleteInformation != null)
                {
                    str = str + "Silverlight:\n" + SilverlightCompleteInformation.DCCount + " Data Contracts;\n" +
                          SilverlightCompleteInformation.SCCount + " Service Contracts;\n" +
                          TimeSpan.FromSeconds((int)SilverlightCompleteInformation.TotalElapsedTime.TotalSeconds) +
                          " Generation Time.\n";
                }
            }
            else
            {
                str = mException.ToString();
            }

            return(str);
        }