Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

C# 5 Equality and Comparisons

via Pluralsight

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
This course teaches you how equality and comparisons function in .NET and the correct way to implement equality and comparisons for your own types.

In this course, you'll learn how to use equality and comparisons correctly in your C# code: both how they work out of the box, and how to implement equality and comparisons for your own types. The course also covers working with inheritance, string comparisons, writing custom comparers and equality comparers, hash codes, and structural comparisons.

Syllabus

  • Why Is Equality So Hard? 28mins
  • Equality in .NET 27mins
  • The C# Equality Operator 31mins
  • Implementing Equality for Value Types 16mins
  • Implementing Equality for Reference Types 34mins
  • Comparisons in .NET 31mins
  • Equality and Comparisons for Strings 37mins
  • Comparers and Equality Comparers 42mins
  • Hash Codes and Hashtables 25mins
  • Structural Equality and Comparisons 16mins

Taught by

Simon Robinson

Reviews

4.6 rating at Pluralsight based on 637 ratings

Start your review of C# 5 Equality and Comparisons

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.