[This is preliminary documentation and is subject to change.]

Return the substring up to but not including the last instance of 'c'.

Namespace: Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static string SubstringBeforeLast(

this string src,

char c

)

VB

Public Shared Function SubstringBeforeLast( _

src As String, _

c As Char _

) As String

C++

public:

static String^ SubstringBeforeLast(

String^ src,

wchar_t c

)

Parameters

src
Type: System.StringSystem.StringSystem::String
The source string.
c
Type: System.CharSystem.CharSystem::Char
The character to look for.

Return Value

Type: System.StringSystem.StringSystem::String
The substring up to but not including the last instance of 'c'. If 'c' is not found, the entire string is returned.

See Also

StringHelpersStringHelpersStringHelpers Class
Simple.Web.HelpersSimple.Web.HelpersSimple::Web::Helpers Namespace