C# string Replace function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

C# string Replace function

Help me. (C#) What will be the code if i will ask the user for input (password) and as the user type the input, "*" will appear instead of the word itself. The Replace function has to be used. I cant figure it out. What is the code for this? :(( How can i insirt photo so i can show you the codes i am trying to do**

6th Nov 2019, 12:03 PM
Beginner_Programmer
Beginner_Programmer - avatar
3 Answers
+ 1
console application
7th Nov 2019, 12:38 AM
Beginner_Programmer
Beginner_Programmer - avatar
+ 1
Do you really need to chance the input the user is giving ? Have a look at this link. https://stackoverflow.com/questions/23433980/c-sharp-console-hide-the-input-from-console-window-while-typing Or is it enough to read the user input with Console.Readline and use string replace afterwards.
7th Nov 2019, 2:04 PM
sneeze
sneeze - avatar
0
Please explain more. What kind of application do you have, winform, wpf or console ? You can share images, place them some where on the internet like imgur, post the image in you feed, post a link of your feed-post in the question.
6th Nov 2019, 10:24 PM
sneeze
sneeze - avatar