ServiceStack.NativeTypes.CSharp.CSharpGenerator.AppendComments C# (CSharp) Method

AppendComments() public method

public AppendComments ( System.Text.StringBuilderWrapper sb, string desc ) : bool
sb System.Text.StringBuilderWrapper
desc string
return bool
        public bool AppendComments(StringBuilderWrapper sb, string desc)
        {
            if (desc == null) return false;

            if (Config.AddDescriptionAsComments)
            {
                sb.AppendLine("///<summary>");
                sb.AppendLine($"///{desc.SafeComment()}");
                sb.AppendLine("///</summary>");
                return false;
            }
            else
            {
                sb.AppendLine($"[Description({desc.QuotedSafeValue()})]");
                return true;
            }
        }