Table of Contents

Class StringExtensions

Namespace
FluentCommand.Extensions
Assembly
FluentCommand.dll

String extension methods

public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

FormatWith(string, params object?[])

Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.

public static string FormatWith(this string format, params object?[] args)

Parameters

format string

A composite format string

args object[]

An object array that contains zero or more objects to format

Returns

string

A copy of format in which the format items have been replaced by the string representation of the corresponding objects in args

HasValue(string?)

Determines whether the specified string is not IsNullOrEmpty(string?).

public static bool HasValue(this string? value)

Parameters

value string

The value to check.

Returns

bool

true if the specified value is not IsNullOrEmpty(string?); otherwise, false.

IsNullOrEmpty(string?)

Indicates whether the specified String object is null or an empty string

public static bool IsNullOrEmpty(this string? item)

Parameters

item string

A String reference

Returns

bool

true if is null or empty; otherwise, false.

IsNullOrWhiteSpace(string?)

Indicates whether a specified string is null, empty, or consists only of white-space characters

public static bool IsNullOrWhiteSpace(this string? item)

Parameters

item string

A String reference

Returns

bool

true if is null or empty; otherwise, false.