string class : TrimEnd() method

Description

Returns a string that removed whitespace characters at the end of the caller.

Syntax

stringInstance.TrimEnd()

Arguments

None

Return value

ClassDescription
stringA string that removed whitespace characters at the end.

Sample code

//anyString is a instance of string type.

string trimmedString = anyString.TrimEnd();

Notes

It's a wrapper of the System.String.TrimEnd(Char[]).

Links for reference

Copyright © Rice All rights reserved.