| C# | |
|---|---|
public static string RemoveDuplicates( string sourceString, string separator ) | |
Parameters
- sourceString
Type: System.String
Source string.
- separator
Type: System.String
Delimiter for text in the string.
Return Value
Type: System.String
A new string without duplicates.
The following example shows call the RemoveDuplicates method.
| C# | Copy Code |
|---|---|
var result = Macros.TextProcessing.RemoveDuplicates("first;first;second", ";"); return result; // result = "first;second" | |
| PHP | Copy Code |
|---|---|
$result = Macros::TextProcessing::RemoveDuplicates("first;first;second", ";"); return $result; // result = "first;second" | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family