C# 5 Equality and Comparisons
Offered By: Pluralsight
Course Description
Overview
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.
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
Related Courses
Introduction à la programmation orientée objet (en Java)École Polytechnique Fédérale de Lausanne via Coursera Useful Genetics Part 2
The University of British Columbia via Coursera Object-Oriented Programming
Indian Institute of Technology Bombay via edX Java für Einsteiger
openHPI Computing: Art, Magic, Science - Part II
ETH Zurich via edX