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.
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.
Author Name: Simon Robinson
Author Description:
Simon Robinson first cut his developer teeth in the early 1980s writing a scheduling system in BBC Basic(!) for his local college. Since then, his programming career has spanned industries ranging from academic research to telecoms to finance, and many computer languages such as C++, C# and Python, as well as writing front-end and back-end code for Windows and Web. He believes knowledge is to be shared, and has written or co-written more than a dozen books for professional programmers, includin… more
Table of Contents
- 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
There are no reviews yet.