Example #1
0
        /// <inheritdoc />
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendLine(base.ToString());

            if (this.MetadataImportErrors != null)
            {
                builder
                .AppendLine("Metadata Import Errors:")
                .AppendLine(
                    DynamicProxyFactory
                    .ToString(
                        this.MetadataImportErrors));
            }

            if (this.CodeGenerationErrors != null)
            {
                builder
                .AppendLine("Code Generation Errors:")
                .AppendLine(
                    DynamicProxyFactory
                    .ToString(
                        this.CodeGenerationErrors));
            }

            if (this.CompilationErrors != null)
            {
                builder
                .AppendLine("Compilation Errors:")
                .AppendLine(
                    DynamicProxyFactory
                    .ToString(
                        this.CompilationErrors));
            }

            return(builder.ToString());
        }