NAnt SDK Documentation - v0.85-nightly-2005-11-09

StringUtils.EndsWith Method 

[This is preliminary documentation and subject to change.]

Determines whether the last character of the given String matches the specified character.

[Visual Basic]
Public Shared Function EndsWith( _
   ByVal value As String, _
   ByVal c As Char _
) As Boolean
[C#]
public static bool EndsWith(
   string value,
   char c
);

Parameters

value
The string.
c
The character.

Return Value

true if the last character of value matches c; otherwise, false.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Util.StringUtils.EndsWith(System.String,System.Char)

Exceptions

Exception Type Condition
ArgumentNullException value is a null reference (Nothing in Visual Basic).

See Also

StringUtils Class | NAnt.Core.Util Namespace