docs icon indicating copy to clipboard operation
docs copied to clipboard

Error in Program.cs

Open CODevOp opened this issue 4 years ago • 1 comments

[Enter feedback here]

In the Program.cs file , the line where the method StartsWithUpper is called is incorrect. Instead of input.StartsWithUpper() it shold read StringLibrary.StartsWithUpper(input)


Document Details

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

CODevOp avatar May 01 '22 14:05 CODevOp

At the end of step 4 under Create a class library project, it explains that the code creates an extension method:

StartsWithUpper is implemented as an extension method so that you can call it as if it were a member of the xref:System.String class.

tdykstra avatar May 06 '22 16:05 tdykstra