A C# console application that reads programming language data from a TSV file and performs several LINQ operations on the dataset.
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.
- Read and parse a
.tsvfile - Convert rows into
Languageobjects - LINQ filtering using
Where - Count languages in the dataset
- Find languages developed by Microsoft
- Display results in the console
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);
}- 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:
This project demonstrates: • Working with files in C# • Parsing TSV data • Using generics (List) • Performing LINQ operations • Basic object-oriented programming