Learn how to code the generate character method.
- [Instructor] Now that we have our…RollAttributeScore method in place,…it makes sense to go ahead…and make one of the most important…methods for this particular class…and that's the GenerateCharacter method.…I'm going to put this right below…the RollAttributeScore method,…but I want to show you a nice trick.…You very often want to put…a new method at the bottom of you class,…but you've got all these…little curly braces down here at the bottom…and it's hard to figure out where…you should put your next line of code.…Visual Studio makes this a little bit easier for you.…
If I click next to this curly brace here on 143,…it will highlight the brace that it closes.…Sometimes, this is going to off the screen,…so you might have to scroll up to find it,…but it will always show you the entry point…for that particular block of code.…Another rule of thumb is that all classes in C#…generally have a name space and a class,…so if you count up from the bottom,…the first one is going to be closing your name space.…The second one is going to be closing your class…
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.