摘要:
多态性 :分为静态多态和动态多态 1.静态多态 相同一个方法名 参数的数量或者类型不一样,这就是静态多态。 public int Getvlue(int x, int y) { return x + y; } public string Getvlue(string x, string y) { r 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 值类型和引用类型 { /// <summary> 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Dynamic; using System.Reflection; using System.Reflection.Emit; public class TestClass { 阅读全文
摘要:
using System; using System.Reflection; using System.Reflection.Emit; using System.Windows.Forms; class ExampleForm : Form { public ExampleForm() : bas 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; namespace 阅读全文
摘要:
三种工厂模式: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 简单 阅读全文
摘要:
这个用起来很爽,通常在不知道主窗体是谁,但是要做成 子窗体可以随时获取主窗体的值,如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Sys 阅读全文