December 2018
Beginner to intermediate
668 pages
15h 30m
English
In the PacktLibrary project, in the Person class, after the class name, add a colon and enter IComparable<Person>, as shown in the following code:
public partial class Person : IComparable<Person>
Visual Studio 2017 and Visual Studio Code will draw a red squiggle under the new code to warn you that you have not yet implemented the method you have promised to.
Visual Studio 2017 and Visual Studio Code can write the skeleton implementation for you if you click on the light bulb and choose the Implement interface option, as shown in the following screenshot:

Read now
Unlock full access