官术网_书友最值得收藏!

Summary

In this chapter, you learned about generic methods, which are methods that can operate on different data types. You also learned about constraining a method in terms of the data types that it can operate on, a concept called constraints. You created a GenMethods class, wrote a Swap function, compared values using the CompareTo method, learned about constraints, and modified the program to perform additional types of comparisons and to work with different data types.

In the next chapter, you will learn about up casting, down casting, and then how to implement a generic interface and how that exactly helps us.

主站蜘蛛池模板: 镇沅| 高安市| 宝应县| 简阳市| 黔南| 开阳县| 宣汉县| 大渡口区| 潮州市| 仪征市| 辽阳市| 东乌珠穆沁旗| 黑河市| 施秉县| 桃源县| 子长县| 安阳县| 镇江市| 宾川县| 宣城市| 芮城县| 资溪县| 东乡族自治县| 股票| 阿城市| 温宿县| 金寨县| 夏河县| 沧源| 乌拉特后旗| 安泽县| 博罗县| 彰化县| 怀仁县| 神木县| 屏东县| 吉隆县| 井研县| 太保市| 呼图壁县| 定州市|