Three extension methods to validate a string value.

string, extensions, packt, csharp, net5
Install-Package SharedLibrary_jlv -Version 5.0.0


Repository for the Packt Publishing book

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

Order the book today!

Author page on Amazon:

I'm listening to my readers - please complete this survey

If you have come to this GitHub repository then you're probably either a reader of the fifth edition of my book, or you're a potential reader of this and future editions. I would like to hear your opinion about what topics and tools I should cover in the sixth edition. Please tell me what you want by completing the survey at the following link:


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