Skip to content

shuwaiee/Coded.CSharpLab

Repository files navigation

C# and ASP.NET Examples Repository

Overview

This repository contains two main projects:

  1. C# Variable Examples in Console: A simple console application demonstrating the use of variables in C#.
  2. ASP.NET Web Application: A basic news web application built using ASP.NET, showcasing practical application of C# in web development.

C# Variable Examples in Console

Description

This project is a console application written in C#. It is designed to teach the basics of variable declaration, initialization, and usage in C#.

How to Run

  • Ensure you have .NET SDK installed on your machine.
  • Clone the repository and navigate to the Coded.CSharpLab.Variables directory.
  • Run the application using the command: dotnet run.

Contents

  • Program.cs: Demonstrates various types of variable declarations and operations.

ASP.NET News Web Application

Description

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.

How to Run

  • Ensure you have .NET SDK and Visual Studio installed.
  • Clone the repository and open the NewsWebApp project in Visual Studio.
  • Run the application using Visual Studio's built-in server.

Contents

  • 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.

Contributing

Contributions to this repository are welcome! Please feel free to submit pull requests with improvements or new examples.

Contact

For questions or feedback, please open an issue in this repository.


Additional Resources


Happy Coding!

About

C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors