Join Bruce Van Horn for an in-depth discussion in this video Working with lists: Part 2, part of Visual Studio for Mac.
- [Instructor] In the last video,…we started talking about lists,…and we started building an inventory system…for our Character class.…This is going to store a list of items…that the character has.…For example, characters usually have a cloak,…a staff, torch, swords, shields, spellbooks,…all the stuff that they carry around with them…on their adventures.…And we created this InventoryItem class,…which is going to define the structure…of what those inventory items look like in our code,…but we never actually got around to using a list,…so why don't we switch back over to Character.cs,…and you'll want to scroll to the top for this part.…
Before I can actually use a list,…which is actually just a type of collection,…I need to add a using statement to the top.…Now, I didn't need to do this earlier with the array,…because arrays are considered primitive types,…but lists are part of the Collections class.…So let's type in using System.Collections,…and I need one more thing in here, Generic.…Now, Generic doesn't mean the same thing…
AuthorBruce Van Horn
- Exploring C# on a Mac
- Creating a reusable code library
- Classes and properties
- Loops, arrays, and lists
- Creating a console app
- Creating a command-line app
- Creating a Mac desktop app
- Creating a UI with view controllers and actions
Skill Level Beginner
New Features Xamarin and Visual Studio 2017with Kevin Ford1h 44m Intermediate
Docker for .NET Developers with Visual Studiowith Lee Brandt46m 52s Intermediate
1. C# on the Mac?
2. Getting Started with C#
3. Deeper into C#
4. Creating a Mac App
Next steps3m 14s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.