Adding the Classes
Learn how to add C# classes to the Blazor WebAssembly project.
We'll cover the following
We need to add both an ExpenseType
class and an Expense
class. We do this as follows:
Right-click the
ExpenseTracker.Shared
folder and select the “Add, Class” option from the menu.Name the new class
ExpenseType
.Click the “Add” button.
Make the class public by adding the
public
modifier:
Get hands-on with 1400+ tech skills courses.