Platform Core .NET Assemblies API
ReplaceLastInstanceOf Method
See Also  Send Feedback
Terrasoft.Common Namespace > StringUtilities Class : ReplaceLastInstanceOf Method
source
String.
oldValue
String to be replaced.
newValue
String to replace the last inclusion of oldValue.

Glossary Item Box

Replaces last inclusion of the specified string with another string in the current instance.

Syntax

 
C#
 
 

Parameters

source
String.
oldValue
String to be replaced.
newValue
String to replace the last inclusion of oldValue.

Return Value

String equivalent to the current string but with the duplicate oldValue inclusions replaced with newValue.

Remarks

Extension method for the System.String class.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.