Learn how to import a library created in an earlier project.
- [Instructor] In the last video,…I showed you how to add our character library…as a reference in dependencies for this project,…and we went ahead online too…and added the "using CharacterLibrary" statement.…That's going to make this character library…available to this program.…But as you can see, it's sort of grayed out.…That's because we haven't used it yet.…Any time you see this sort of lighter…version of a using statement,…it typically means that you can take that statement out…because it's not being used.…
So why don't we go to work with our character library?…I'll go to the line where we do…the console log Hello World.…We're not going to use that so I'm going to get rid of it.…What I'll do instead is create a variable…with the var keyword,…and I'll call my character, unsurprisingly, character.…And I'll set that equal to a new character.…If I hover over Character in the IntelliSense window,…I can see that this class, character,…is coming from CharacterLibrary,…which is exactly what we want.…
I'll go ahead and press tab,…
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
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.