From the course: .NET Fundamentals: Concepts, APIs, and Libraries in the .NET Framework
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Arrays and collections - .NET Tutorial
From the course: .NET Fundamentals: Concepts, APIs, and Libraries in the .NET Framework
Arrays and collections
- [Instructor] .NET arrays and collections are similar in that they both allow for the storage and manipulation of multiple items. Both can be used to store and retrieve data and both can be iterated over using a loop. However, collections are considered more flexible and feature rich than arrays. There are a wide variety of collections available. Language Integrated Query, also known as LINQ is a set of features in .NET that allows for the querying and manipulation of data in a concise and expressive way. Both arrays and collections can be queried with LINQ. .NET arrays are derived from System.Array, so the array class itself fits into the .NET type system. Each programming language has its own syntax for declaring arrays. This is the C# version. So look on line nine. I'm instantiating an int array. Notice that I'm not using the new keyword and saying new system array. I'm using a special C# syntax where I use the type,…
Contents
-
-
-
-
(Locked)
The Common Type System (CTS)7m 41s
-
(Locked)
Namespaces and assemblies7m 5s
-
(Locked)
Interfaces5m 58s
-
(Locked)
Generics7m 22s
-
(Locked)
Delegates and Lambda expressions7m 51s
-
(Locked)
Reflection and attributes8m 32s
-
(Locked)
Nullable value types6m 39s
-
(Locked)
Arrays and collections6m 24s
-
(Locked)
Events and event handlers6m 42s
-
(Locked)
Handling exceptions in .NET8m 52s
-
(Locked)
Strings and Chars5m 50s
-
(Locked)
C# records and .NET3m 54s
-
(Locked)
Auto memory management with garbage collection9m 56s
-
(Locked)
Command line and the SDK5m 56s
-
(Locked)
Publishing applications2m 7s
-
(Locked)
-