- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 79字
- 2021-07-02 15:29:25
Making the delegate
Enter using System as usual at the very top of the file. Next, to make a delegate, enter the following:
delegate double CompareValues(double x, double y);
In this line, you have a delegate class. It returns a double and accepts two double data types. So, it encapsulates functions that have that kind of signature.
In the next stage, you'll enter the following within curly braces:
public partial class_Default: System.Web.UI.Page
This line inherits from Page as usual.
推薦閱讀
- Node.js+Webpack開發實戰
- 在最好的年紀學Python:小學生趣味編程
- 密碼學原理與Java實現
- MySQL數據庫應用與管理 第2版
- Building a Game with Unity and Blender
- PaaS程序設計
- Python測試開發入門與實踐
- Visual Basic程序設計實驗指導(第4版)
- C語言程序設計同步訓練與上機指導(第三版)
- NoSQL數據庫原理
- Building Wireless Sensor Networks Using Arduino
- Building Serverless Architectures
- 微課學人工智能Python編程
- C編程技巧:117個問題解決方案示例
- Python大規模機器學習