+ 1

how can we Remove a particular char form a string which is given by user

28th Sep 2021, 10:59 AM
Srijan Singh
Srijan Singh - avatar
2 Respuestas
+ 3
After you received user input as a string, you could use string.remove method to remove char from string: https://docs.microsoft.com/en-us/dotnet/api/system.string.remove?view=net-5.0
28th Sep 2021, 11:15 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 3
You can optionally, replace all the specified character in the said string by an empty string to get rid of their presence. https://docs.microsoft.com/en-us/dotnet/api/system.string.replace
28th Sep 2021, 1:57 PM
Ipang