Table of Contents

Class PublicationLinesUtility

Namespace
Songhay.Publications
Assembly
Songhay.Publications.dll

Shared routines for Publication Lines.

public static class PublicationLinesUtility
Inheritance
PublicationLinesUtility
Inherited Members

Methods

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

contentLines IReadOnlyCollection<string>

the collection of content lines

length int

The string-length of the extract.

logger ILogger

the ILogger

Returns

string

ConvertToLines(string?)

Converts the specified string into Publication lines.

public static IReadOnlyCollection<string> ConvertToLines(string? content)

Parameters

content string

the content string

Returns

IReadOnlyCollection<string>