Let's code
All the code for this project will be available on GitHub. Point your browser to https://github.com/PacktPublishing/CSharp7-and-.NET-Core-2.0-Blueprints and grab the code to work through it as you read through the rest of this chapter.
Setting up the classes and settings
The first thing I want to do is create a class that will store my settings. For this, perform the following steps:
- Create a folder called
Classes
and, in this folder, create a class calledCoreTwitterSettings
. Then, add a second class calledTweetItem
to theClasses
folder (we will be using this class later). While you are at it, create another folder calledcss
, which we will be using in a minute. - When you have done this, your project will look as follows:
- Open the
CoreTwitterSettings
class and add the following code to it:
public class CoreTwitterConfiguration { public string ApplicationName { get; set; } public int TweetFeedLimit { get; set; } = 1; public TwitterSettings TwitterConfiguration { get...