Topics
Csharp List
About this topic: Articles tagged __TAG__
Showing 37 articlesRelated tags
Topics
Articles
Showing 37 articles
How-tos
How to Convert Array to List in C#
Learn how to convert an array to a list in C
↗
How-tos
How to Get the Last Element of a List in C#
Learn how to get the last element of a list in C
↗
How-tos
How to Get the First Object From List<Object> Using LINQ
Learn how to use LINQ in C
↗
How-tos
How to Add List to Another List in C#
Learn how to add one list to another in C
↗
How-tos
C# List Index
This comprehensive tutorial on C
↗
How-tos
How to Shuffle a List in C#
Unfortunately, there is no pre-defined method available for shuffling a list in C#. So, we have to rely on self-generated code for shuffling a list in C#.
↗
How-tos
How to Declare a Multidimensional List in C#
Unfortunately, there is no built-in method to declare a multidimensional list in C#. To achieve this objective, we can use one of the following user-defined approaches. the list of …
↗
How-tos
How to Convert List<string> to String in C#
There are 3 main methods that can be used to convert a List to a string variable in C#, the LINQ Aggregate method, the String.Join() function and StringBuilder class.
↗
How-tos
How to Split String to List in C#
This tutorial discusses different methods for splitting a string into a list of strings in C#, discussing how each method works and its use cases.
↗
How-tos
How to Copy a List in C#
In this article, we will explore different techniques for copying lists in C# and discuss their use cases, advantages, and implementation details.
↗
How-tos
How to Compare Two Lists in C#
There are 2 main methods that can be used to compare 2 lists for differences in C#, the Linq method and the List.Contains() functions.
↗
How-tos
How to Iterate Through a List in C#
There are 3 main methods that can be used to iterate through a list in C#, the for loop, the foreach loop, and the Lambda expressions.
↗
How-tos
How to Add String to an Array in C#
There is no built-in method to dynamically add new elements to a completely filled array in C#.
↗
How-tos
How to Initialize a List of Tuples in C#
This article explores several approaches to efficiently initialize a list of tuples in C#.
↗
How-tos
How to Remove Duplicates From List in C#
There are two main methods that can be used to remove duplicate elements from a list in C#, the HashSet method, and the LINQ method.
↗
How-tos
How to Convert String to Char in C#
There are four main methods that can be used to convert string to char in C#, char.Parse(), string[index], string.ToCharArray(), and the LINQ method.
↗
How-tos
HashSet vs List in C#
In C#, a hash set is an unordered collection of unique objects while a list is a collection of objects that can be accessed by an index.
↗
How-tos
How to Convert an IEnumerable to a List in C#
This article introduces various methods and scenarios for converting an IEnumerable to a List in C#.
↗
How-tos
Thread Safe List in C#
There are two main methods that can be used to create a thread-safe list in C#, the ConcurrentBag class, the ConcurrentQueue class, and the SynchronizedCollection class.
↗
How-tos
How to Get List Length in C#
This tutorial demonstrates how to get the number of items in a C# List by using the count function
↗
How-tos
How to Convert IEnumerable to List in C#
In this tutorial, learn the different methods of converting IEnumerable to list in C#. Use the ToList(), ToArray(), and AsEnumerable() method.
↗
How-tos
How to Check if List Is Empty in C#
We'll discuss three methods that can be utilized to check if a list is empty or not in C#: the List.Count method, the List.Any() function and the is null check.
↗
How-tos
How to Convert List to IEnumerable in C#
There is no need to convert a List to an IEnumerable because the List data structure already implements the IEnumerable interface but we can still use some methods to cast a List …
↗
How-tos
How to Sort a List by a Field in C#
In this article, we will show various methods on how to sort a list by a field in C#.
↗
No articles found
Try clearing the filters.