-1

Why I can't replace ARMENIAN EMPHASIS MARK with an empty string?

Replace("՛", String.Empty)

Where ՛ is unocode char U+055B http://unicode.org/cldr/utility/character.jsp?a=055b

Alik
  • 1

1 Answers1

1

Its method with return.

Assign result.

var names = new List<String>
{
    "Ana՛",
    "Felipe՛",
    "Emillia՛"
};

foreach (var name in names)
{
    var newName = name.Replace("՛",string.Empty);
    Console.WriteLine($"Hello {newName}");
}
lsaudon
  • 1,263
  • 11
  • 24