- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 65字
- 2021-07-02 15:29:16
Introducing constraints
To compare values, you want to use the CompareTo method. It can be used if you have where T : IComparable. This is a new construct there. It's a constraint. The Compare method works, but it only does so if the data type on which it is operating has IComparable implemented on it. In other words, it makes sense to compare the values.
推薦閱讀
- GeoServer Cookbook
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- 零基礎學C++程序設計
- Power Up Your PowToon Studio Project
- Mastering Selenium WebDriver
- Mastering Python Scripting for System Administrators
- Cassandra Data Modeling and Analysis
- Mastering Ext JS
- C++面向對象程序設計習題解答與上機指導(第三版)
- Linux:Embedded Development
- .NET 3.5編程
- 一塊面包板玩轉Arduino編程
- CoffeeScript Application Development Cookbook
- Extreme C
- HTML5權威指南