Table of Contents

Class StringExtensions

Namespace
Raytha.Application.Common.Utils
Assembly
Raytha.Application.dll
public static class StringExtensions
Inheritance
StringExtensions
Inherited Members

Methods

IfNullOrEmpty(string, string)

public static string IfNullOrEmpty(this string value, string swap)

Parameters

value string
swap string

Returns

string

IsProtectedRoutePath(string)

public static bool IsProtectedRoutePath(this string value)

Parameters

value string

Returns

bool

IsValidDeveloperName(string)

public static bool IsValidDeveloperName(string source)

Parameters

source string

Returns

bool

IsValidEmailAddress(string)

public static bool IsValidEmailAddress(this string value)

Parameters

value string

Returns

bool

IsValidUriFormat(string)

public static bool IsValidUriFormat(this string link)

Parameters

link string

Returns

bool

ProtectedRoutePaths()

public static IEnumerable<string> ProtectedRoutePaths()

Returns

IEnumerable<string>

SplitIntoSeparateEmailAddresses(string)

public static string[] SplitIntoSeparateEmailAddresses(this string value)

Parameters

value string

Returns

string[]

StripHtml(string)

public static string StripHtml(this string input)

Parameters

input string

Returns

string

ToDeveloperName(string)

public static string ToDeveloperName(this string source)

Parameters

source string

Returns

string

ToUrlSlug(string)

public static string ToUrlSlug(this string value)

Parameters

value string

Returns

string

Truncate(string?, int, string)

public static string? Truncate(this string? value, int maxLength, string truncationSuffix = "…")

Parameters

value string
maxLength int
truncationSuffix string

Returns

string

YesOrNo(bool)

public static string YesOrNo(this bool value)

Parameters

value bool

Returns

string