- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 135字
- 2021-07-03 00:11:59
How it works...
At the heart of generics lies the ability to reuse a single class or method. It allows developers to essentially not repeat similar code throughout your code base. This conforms well to the Don't Repeat Yourself (DRY) principle. This design principle states that a specific bit of logic should be represented in code only once.
Using generic classes, for example, also allows developers to create a class that is type safe when compiling. Type safe basically means that the developer can be assured of the type of the object and can use the class in a specific way without experiencing any unexpected behavior. Therefore, the compiler takes over the burden of type safety.
Generics also allow developers to write less code, because code can be reused and less code also performs better.
- AngularJS入門與進階
- Mobile Web Performance Optimization
- Android Jetpack開發:原理解析與應用實戰
- 數據庫系統原理及MySQL應用教程
- Practical DevOps
- Python 3網絡爬蟲實戰
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- Unity 5.x By Example
- 區塊鏈技術與應用
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- 機器學習微積分一本通(Python版)
- ROS機器人編程實戰
- jQuery Mobile Web Development Essentials(Second Edition)
- Python計算機視覺與深度學習實戰
- 輕松學Scratch 3.0 少兒編程(全彩)