Three extension methods to validate a string value.

string, extensions, packt, csharp, net5
Install-Package Packt.SuperCoolCSdotnet.SharedLibrary -Version 5.0.0


Repository for the Packt Publishing book

Open in Visual Studio Code

C# 9 and .NET 5 - Modern Cross-Platform Development, Fifth Edition

Order the book today!

Author page on Amazon:


Corrections for typos and other mistakes, and improvements like refactoring code.

Online materials

Supplementary book materials available to download as PDFs:

  • Color images of the screenshots/diagrams used in this book
  • Appendices for this book
    • Appendix A, Answers to the Test Your Knowledge Questions
    • Appendix B, Building Windows Desktop Apps
  • The cs9dotnet5-extras repository contains articles that support the book, for example, instructions for using a Raspberry Pi to complete the coding tasks in the book.

Useful links post-publishing:

Interviews with me

Podcast interviews with me:

Written interviews with me:

Book cover

C# 9 and .NET 5 by Packt Publishing