- 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.
推薦閱讀
- PWA入門與實踐
- Moodle Administration Essentials
- Python入門很簡單
- 青少年美育趣味課堂:XMind思維導圖制作
- 零基礎學C語言程序設計
- Maker基地嘉年華:玩轉樂動魔盒學Scratch
- 從0到1:HTML5 Canvas動畫開發
- PyQt編程快速上手
- Docker:容器與容器云(第2版)
- MongoDB Administrator’s Guide
- Mastering Clojure
- 面向物聯網的Android應用開發與實踐
- Unity與C++網絡游戲開發實戰:基于VR、AI與分布式架構
- Unity AI Game Programming(Second Edition)
- Python網絡運維自動化