dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.29k stars 5.92k forks source link

Minor nits in example and explanation #26862

Open RexJaeschke opened 3 years ago

RexJaeschke commented 3 years ago
  1. My guess is the dates 1012 and 2103 should be 2012 and 2013, respectively.

  2. I think the explanation "That cast from SampleCustomer to ICustomer is necessary." is too subtle. This refers to the following initialization:

ICustomer theCustomer = c;

Yes, this involves an implicit conversion from c's type, SampleCustomer, but that is not immediately obvious. How about replacing "cast" with "implicit conversion" or doing some other wordsmithing?

Regards, Rex


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

BillWagner commented 3 years ago

Thanks @RexJaeschke

I'll update these when I next update this article.