Horje
remove duplicate characters in a string C# Code Example
remove duplicate characters in a string C#
public static string RemoveDuplicates(string input)
{
    return new string(input.ToCharArray().Distinct().ToArray());
}
remove duplicate characters in a string C#
string removedupes(string s)
{
    string newString = string.Empty;
    List<char> found = new List<char>();
    foreach(char c in s)
    {
       if(found.Contains(c))
          continue;

       newString+=c.ToString();
       found.Add(c);
    }
    return newString;
}




Csharp

Related
c# foreach object in array json Code Example c# foreach object in array json Code Example
c# radio button checked Code Example c# radio button checked Code Example
Kill System Process in C# Code Example Kill System Process in C# Code Example
make string Code Example make string Code Example
C# datareadeer return null Code Example C# datareadeer return null Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10