How to enable Char password in text box except last character N?
I already tried this method
cardnumber.Select((c, i) => i < cardnumber.Length - 4 ? 'X' : c).ToArray()
But it’s so difficult to manipulate, I will transmit the original value of the card in each case, for example Keypress,
TextChangeetc.
Is there a way that is easier and more convenient to manage?
source
share