public virtual string GetCompilerErrors() { var result = new StringBuilder(); if (CompilerErrors.Count > 0) { CompilerErrors.ToList().ForEach(c => { string errorData = string.Format("<CompilerError>{0}</CompilerError>", c); result.Append(errorData); }); } else { result.Append(string.Format("<CompilerMessage>Build of {0} '{1}' Succeeded</CompilerMessage>", Enum.GetName(typeof(enDynamicServiceObjectType), ObjectType), Name)); } return(result.ToString()); }