Just use this constructor of List<T>
. It accepts any IEnumerable<T>
as an argument.
string[] arr = ...
List<string> list = new List<string>(arr);
More Related Contents:
- How can I evaluate C# code dynamically?
- How to use WebBrowser control DocumentCompleted event in C#?
- End of Stream encountered before parsing was completed?
- C#: multiline text in DataGridView control
- Embedding a DOS console in a windows form
- Save and reload app.config(applicationSettings) at runtime
- How do I prevent print screen
- Unable to cast COM object – Microsoft outlook & C#
- C# Xml Serialization & Deserialization
- How to use LogonUser properly to impersonate domain user from workgroup client
- Using C# MethodInvoker.Invoke() for a GUI app… is this good?
- From Dictionary to List
- Mocking Extension Methods with Moq
- Generating all Possible Combinations
- OpenSubKey() returns null for a registry key that I can see in regedit.exe
- How to get current user in asp.net core
- Convert string to DateTime in c#
- Is accessing a variable in C# an atomic operation?
- How to initialize a list of strings (List) with many string values
- How to execute Process commands (or similar) using a Universal Windows Platform (UWP) App?
- Async/Await vs Threads
- Fastest way to add new node to end of an xml?
- Should I transform Entity (Persistent) objects to DTO objects?
- How to Draw a Rounded Rectangle with WinForms (.NET)?
- Console.WriteLine and generic List
- Total number of items defined in an enum
- NHibernate.MappingException: No persister for: XYZ
- How to bind Dataset to DataGridView in windows application
- How to inject UserManager & SignInManager
- Find a file within all possible folders?