Answer the question
In order to leave comments, you need to log in
How to trim an arraylist?
How to truncate the number of elements in an arraylist?
Array.Resize requires a generic type, and I have different data
in the arraylist The length of the output Arraylist is unknown, it can be different
Answer the question
In order to leave comments, you need to log in
Still cut off
foreach (var item in Password.ToArray().Take(length))
{
Console.Write(item);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question