C#
Yus3
万般皆下品,唯有读书高。
展开
-
C#自定义事件的完整定义方法和简化方法
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace EventExample2 { class Program { ...原创 2019-10-09 12:31:42 · 841 阅读 · 0 评论 -
C#的泛型
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TExample { class Program { static void Main(string[] arg...原创 2019-10-11 15:37:26 · 141 阅读 · 0 评论 -
C#的显示接口实现
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InterfaceSample2 { class Program { static void Main(stri...原创 2019-10-11 11:43:29 · 304 阅读 · 0 评论 -
C#的接口隔离原则
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InterfaceSample { class Program { static void Main(strin...原创 2019-10-11 11:15:01 · 330 阅读 · 0 评论 -
C#类的实例构造器,静态构造器和实例析构器
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassExample2 { class Program { static void Main(string[...原创 2019-10-10 15:02:15 · 295 阅读 · 0 评论 -
C#的委托
C#的委托即为可以包装函数的一个“类”,能够间接调用函数。 定义返回值为void,无参类型的委托。如下列代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DelegateExampl...原创 2019-10-09 16:10:51 · 155 阅读 · 0 评论