<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

StringExtensions

static class StringExtensions
Defines static String extension methods.
public static string AppendTrailingSlashToUrl(this string url)

Appends a trailing slash to the URL string.

public static string CombineUrls(this string url, string value)

Safely combines the two URL values into a new URL.

public static string ToCsvCellContents(this string input)

Converts the input string to a CSV cell content representation. This method uses double-quotes for the bound and the newline character for the newline proxy.

public static string ToDelimitedFileCellContents(this string input, string bound, string newlineProxy)

Converts the input string to replace the system newline characters with the provided new line proxy; doubles any existing bound strings in the input.

public static string ToSqlFriendlyName(this string input)

Converts the input string to a SQL friendly name by removing all non-word characters.

public static string TrimLeadingSlashFromUrl(this string url)

Trims the leading slash from the URL string.

public static string TrimTrailingSlashFromUrl(this string url)

Trims a trailing slash from the URL string.