© Robert E. Beasley 2020
R. E. BeasleyEssential ASP.NET Web Forms Developmenthttps://doi.org/10.1007/978-1-4842-5784-5_15

15. Custom C# Classes

Robert E. Beasley1 
(1)
Franklin, IN, USA
 

15.1 Introduction

Like the other C# classes we have discussed in this book, a custom C# class can contain properties, methods, and events. These classes are considered “custom” because the only properties, methods, and events they contain are the ones we define. Because of this, they do exactly what we want them to do—nothing more, nothing less. Custom C# classes are helpful when there are functions or procedures that we must perform in many places within a single Web application or across multiple Web applications. So, instead of writing a segment of code to perform ...

Get Essential ASP.NET Web Forms Development: Full Stack Programming with C#, SQL, Ajax, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.