Adding a SimpleStruct class file
Let's make a project, as shown in the following screenshot (I have eliminated the <div>
tag lines as we won't be needing them):

Figure 6.19.1: The starting HTML for our project
Once you have the project, add a class file and put the struct inside this class file. Go to Solution Explorer
, right-click on the name of the website, select Add
, and then click on Class
. Name the class SimpleStruct
and click on OK
. When the Visual Studio message comes up, click on Yes
.