ZennoLab Assemblies Documentation
RemoveDuplicates Method
Example 

Type: System.String

The source string.

Type: System.String

Delimiter for text in the string.

Removes duplicates.
Syntax
public static string RemoveDuplicates( 
   string sourceString,
   string separator
)

Parameters

sourceString

Type: System.String

The source string.

separator

Type: System.String

Delimiter for text in the string.

Return Value

Type: System.String

A new string without duplicates.

Example
The following example shows call the RemoveDuplicates method.
var result = Macros.TextProcessing.RemoveDuplicates("first;first;second", ";");
return result;
 
// result = "first;second"
$result = Macros::TextProcessing::RemoveDuplicates("first;first;second", ";");
return $result;
 
// result = "first;second"
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

TextProcessing Class
TextProcessing Members
Replace Method
Trim Method

Send Feedback