Class PublicationLinesUtility
- Namespace
- Songhay.Publications
- Assembly
- Songhay.Publications.dll
Shared routines for Publication Lines.
public static class PublicationLinesUtility
- Inheritance
-
PublicationLinesUtility
- Inherited Members
Methods
ConvertToContent(IReadOnlyCollection<string>?)
Reduce a collection of content lines to a string.
public static string? ConvertToContent(IReadOnlyCollection<string>? contentLines)
Parameters
contentLinesIReadOnlyCollection<string>a collection of strings, representing lines of content
Returns
ConvertToExtract(IReadOnlyCollection<string>?, int, ILogger)
Converts the specified content lines to a Publications extract.
public static string? ConvertToExtract(IReadOnlyCollection<string>? contentLines, int length, ILogger logger)
Parameters
contentLinesIReadOnlyCollection<string>the collection of content lines
lengthintThe string-length of the extract.
loggerILoggerthe ILogger
Returns
ConvertToLines(string?)
Converts the specified string into Publication lines.
public static IReadOnlyCollection<string> ConvertToLines(string? content)