E
E
Evgeny Semashko2020-09-22 19:37:53
C++ / C#
Evgeny Semashko, 2020-09-22 19:37:53

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

1 answer(s)
E
Evgeny Semashko, 2020-09-22
@evgenysemashko

Still cut off

foreach (var item in Password.ToArray().Take(length))
            {
                Console.Write(item);
            }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question