Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course
    • Libraries: If you want this course, consider one of these libraries.
    • Core Tech

C# 5 Equality and Comparisons

This course teaches you how equality and comparisons function in .NET and the correct way to implement equality and comparisons for your own types.

Simon Robinson - Pluralsight course - C# 5 Equality and Comparisons
Simon Robinson
What you'll learn

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.

Table of contents

About the author
Simon Robinson - Pluralsight course - C# 5 Equality and Comparisons
Simon Robinson

Simon is a senior developer with over 20 years programming experience, particularly covering C++ and the .NET Framework. He believes knowledge is to be shared and has written or co-written more than a dozen books for professional programmers.

Get access now

Sign up to get immediate access to this course plus thousands more you can watch anytime, anywhere.

Get started with Pluralsight