ZennoLab Assemblies Documentation
RemoveDuplicates Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : RemoveDuplicates Method
sourceString

Type: System.String

Source string.

separator

Type: System.String

Delimiter for text in the string.

Glossary Item Box

Removes duplicates

Syntax

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.

Example

The following example shows call the RemoveDuplicates method.
C#Copy Code
var result = Macros.TextProcessing.RemoveDuplicates("first;first;second", ";");
return result;
 
// result = "first;second"
PHPCopy Code
$result = Macros::TextProcessing::RemoveDuplicates("first;first;second", ";");
return $result;
 
// result = "first;second"

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.