23 Replies
I am unable to use mask on C#
Why are you converting a string to a string?
And what do you mean by "mask"?
basically X out the string
When entering it, or when printing it out?
printing
Using the string constructor to create a string with
n
letters X
in it would be one part of it
Cutting out the first n
characters of your string would be the secondas i want to mask out the front character specified by me\
Joining those strings together would be the last
like how many char i want to X out
That'd be the
n
I do not understand
Sry as i am quite new to c#
Angius#1586
REPL Result: Success
Result: string
Compile: 258.640ms | Execution: 16.901ms | React with ❌ to remove this embed.
This will create a string with 7
*
s in it
So that's the first part of solving your problemAngius#1586
REPL Result: Success
Result: string
Compile: 389.564ms | Execution: 50.514ms | React with ❌ to remove this embed.
Cool
This will take only some part of the string
So that solves the second part
Angius#1586
REPL Result: Success
Result: string
Compile: 280.447ms | Execution: 21.267ms | React with ❌ to remove this embed.
And this concatenates two strings together
like using existing string
I want to X it out
Cool
I know
I gave you the solution, now it's on you to implement it
If you're expecting to be spoonfed a ready-made solution, I have bad news for you
ahhh
thx for your help