A clean and practical C# Console Application for managing products using object-oriented programming and LINQ.
Console output showing product list, sorting, total calculation, and search highlighting
This project was developed as part of a C# learning program and focuses on building a structured and interactive console application.
It demonstrates:
- Object-Oriented Programming (OOP)
- LINQ for data manipulation
- Clean and user-friendly console UI design
The application allows users to add, view, sort, and search products efficiently.
- Input: Category, Product Name, Price
- Continuous input until the user enters "Q"
- Displayed in a formatted table
- Sorted from lowest to highest price using LINQ
- Total price calculated and shown
- Search products by name
- Matching results are highlighted in the list
- Safe input handling using
TryParse - Prevents invalid input and application crashes
- Sorting →
OrderBy() - Summing →
Sum() - Filtering →
Where()
ProductListApp/
│
├── Program.cs // Main application logic
├── Product.cs // Product model
├── Category.cs // Category model
├── README.md
└── screenshot.PNG
The user can:
- Add multiple products
- Stop input with "Q"
- View a sorted product list
- See the total price
- Search and highlight products
- C#
- .NET Console Application
- LINQ
- Open the project in Visual Studio
- Build the solution
- Run the application
- Follow the instructions in the console
- Completed core requirements (Level 1–3)
- Extended with search and highlight functionality
- Clean, structured, and readable code
Osman Osmani