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
Beginning Game Programming with C#University of Colorado System via Coursera Programming with C#
Microsoft via edX DEV206.1x: Introduction to XAML and Application Development
Microsoft via edX Introduction to Game Development
Michigan State University via Coursera Designing Advanced Applications using XAML
Microsoft via edX