Summary
Determines whether the last character of the given
string
matches the specified character.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Util - Containing Type
- StringUtils
Syntax
[Obsolete("StringUtils.EndsWith method is depreciated. Use string.EndsWith(string) instead.")]
public static bool EndsWith(string value, char c)
Attributes
| Type | Description |
|---|---|
| ObsoleteAttribute |
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The string. |
| c | char | The character. |
Return Value
| Type | Description |
|---|---|
| bool |
true if the last character of value
matches c; otherwise, false.
|
