Hunny Software Library Reference

ByteString.EndsWith Method 

Indicates if this instance ends with the specified substring.

[Visual Basic]
Public Function EndsWith( _
   ByVal str As ByteString _
) As Boolean
[C#]
public bool EndsWith(
   ByteString str
);

Parameters

str
ByteString instance to compare to the end of this instance

Return Value

true if this instance ends with str
or if str is empty

Remarks

The comparison is case-sensitive.

Exceptions

Exception TypeCondition
ArgumentNullExceptionstr is null

See Also

ByteString Class | Hunny.Base Namespace