JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Interface IComparable<T>

    C# SELF
    30 level,0 lecture
    In this lecture, you'll learn how to teach your classes to compare and sort objects in their "natural" order using the IComparable<T> interface. We'll break down how to implement CompareTo, what common mistakes to avoid, how to sort by multiple fields, and when it's actually better NOT to implement this interface. All with examples, tables, and practical tips!
    Open
  • Interface IComparer<T>

    C# SELF
    30 level,1 lecture
    In this lecture, you'll learn how to use the IComparer<T> interface to implement different ways of sorting objects in C#. We'll break down how it's different from IComparable<T>, learn how to create your own comparators, look at examples of sorting by different criteria, and go over common mistakes when implementing. All with practical tips and clear examples!
    Open
  • Lambdas and Delegates for Comparison

    C# SELF
    30 level,2 lecture
    In this lecture, you'll learn how to use delegates and lambda expressions to sort collections in C#, why they're more convenient than comparator classes, how the Comparison<T> delegate works, and why lambdas are a modern and concise way to pass comparison logic. Examples, nuances, and common mistakes—everything you need for a confident start with lambdas!
    Open
  • Tricky Comparison Cases and Best Practices

    C# SELF
    30 level,3 lecture
    In this lecture, you'll learn how to properly implement complex object comparisons in C#, how to handle hierarchical sorting, string comparison with culture awareness, protection from null, working with nullable fields, and extra business rules. You'll get best practices, tips, and common mistakes so your sorts and comparisons work right in any situation.
    Open
  • Practical Use of Comparers in .NET

    C# SELF
    30 level,4 lecture
    In this lecture, you'll learn how and why to use comparers in .NET for sorting, searching, grouping, and making sure your custom class objects are unique. We'll break down, with hands-on examples, how to make your own comparers, where they're used in collections and LINQ, and what mistakes people most often make when using them.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy