Table of Contents

Class StringExtensions

Namespace
Acuit.Pinpoint.Common
Assembly
Acuit.Pinpoint.Common.dll

Extension members for string.

public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

ToNullIfEmpty(string?)

Produces the original string, or null if it is empty.

public static string? ToNullIfEmpty(this string? value)

Parameters

value string

Returns

string

null if the string is empty; otherwise, the original string value.

ToNullIfWhiteSpace(string?)

Produces the original string, or null if it is empty or consists only of white-space characters.

public static string? ToNullIfWhiteSpace(this string? value)

Parameters

value string

Returns

string

null if the string is empty or consists only of white-space characters; otherwise, the original string value.