This repository contains two main projects:
- C# Variable Examples in Console: A simple console application demonstrating the use of variables in C#.
- ASP.NET Web Application: A basic news web application built using ASP.NET, showcasing practical application of C# in web development.
This project is a console application written in C#. It is designed to teach the basics of variable declaration, initialization, and usage in C#.
- Ensure you have .NET SDK installed on your machine.
- Clone the repository and navigate to the
Coded.CSharpLab.Variablesdirectory. - Run the application using the command:
dotnet run.
Program.cs: Demonstrates various types of variable declarations and operations.
A simple ASP.NET MVC application that displays news articles. This project demonstrates how C# variables and classes are used in a web application context.
- Ensure you have .NET SDK and Visual Studio installed.
- Clone the repository and open the
NewsWebAppproject in Visual Studio. - Run the application using Visual Studio's built-in server.
NewsController.cs: Controller handling the display of news articles.Article.cs: Model representing a news article.Index.cshtml: Razor view displaying the list of news articles.Details.cshtml: Razor view displaying the a specific article.
Contributions to this repository are welcome! Please feel free to submit pull requests with improvements or new examples.
For questions or feedback, please open an issue in this repository.
Happy Coding!