Orc.NuGetExplorer.PackageDetailsService.GetDetailsRecord C# (CSharp) Méthode

GetDetailsRecord() private méthode

private GetDetailsRecord ( string title ) : Inline
title string
Résultat System.Windows.Documents.Inline
        private Inline GetDetailsRecord(string title, params string[] stringLines)
        {
            Argument.IsNotNullOrWhitespace(() => title);

            if (stringLines == null)
            {
                return null;
            }

            var valuableLines = stringLines.Where(x => !string.IsNullOrWhiteSpace(x)).ToArray();
            if (!valuableLines.Any())
            {
                return null;
            }

            var inlines = valuableLines.Select(line => line.ToInline().Append(new LineBreak())).ToList();

            var resultInline = title.ToInline().Bold().AppendRange(inlines);
            return resultInline;
        }
        #endregion