From the course: Object-Oriented Programming with C#

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Joining words

Joining words

- [Instructor] So now that we have the basic logic in order to describe the room, we're going to need to come up with a way of joining each of the directions that the player can go in in order to add it back to the description. To get started, let's go into our language class. We're going to add two more properties to this class. The first will be a property for the comma and the second will be a property for the space. Now let's go into our English class and set these two strings. Now it's time for us to add the logic for our joined word list method. In order to do that, we're going to create a new partial file that will add the functionality onto the existing language class. We're going to call this file language.helpers.cs. Now let's go ahead and set up all the boiler plate code we need to create this partial class. In the previous video, we created a new instance of the StringBuilder every time we called to…

Contents