Skip to content

bezay999/LINQ

Repository files navigation

ProgrammingLanguages

A C# console application that reads programming language data from a TSV file and performs several LINQ operations on the dataset.

Description

The program loads a list of programming languages from languages.tsv, converts each line into a Language object, and executes various queries such as filtering by developer, counting languages, and selecting specific ranges of years.

Features

  • Read and parse a .tsv file
  • Convert rows into Language objects
  • LINQ filtering using Where
  • Count languages in the dataset
  • Find languages developed by Microsoft
  • Display results in the console

Example

List<Language> languages = File
    .ReadAllLines("languages.tsv")
    .Skip(1)
    .Select(line => Language.FromTsv(line))
    .ToList();

var microsoftLanguages = languages.Where(l => l.ChiefDeveloper.Contains("Microsoft"));

foreach (var language in microsoftLanguages)
{
    Console.WriteLine(language.Predecessors);
}

How to Run

  1. Install the .NET SDK. 2. Ensure the languages.tsv file exists and the path in Program.cs is correct. 3. Navigate to the project directory. 4. Run the application:

Purpose

This project demonstrates: • Working with files in C# • Parsing TSV data • Using generics (List) • Performing LINQ operations • Basic object-oriented programming

About

A C# console application that reads programming language data from a TSV file and performs several LINQ operations on the dataset.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages