C#之params参数使用

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Params_test{ class Program { int Sum(params int[] i) //求不定数量的整数之和 { …… 阅读全文

C#之运算符重载学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Override_test{ public class ComplexClass { public class complex { p …… 阅读全文

C#之命名空间学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SampleNamespace{ class SampleClass { public void SampleMethod() { C …… 阅读全文

C#之用Base方法调用基类构造函数学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace BaseClass_test{ public class BaseClass //基类 { int Number; public BaseCla …… 阅读全文

C#之类中new方法学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace new_test{ public class BClass //基类 { public void DoWork() { …… 阅读全文

C#之virtual学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace virtual_test{ public class BClass //基类 { public virtual void DoWork() //虚函 …… 阅读全文

C#之override学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace override_test{ class TestOverride { public class Employee { public …… 阅读全文

C#之类继承,接口学习案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;//接口的声明案例/*namespace Interface_test{ interface Ifunction1 //接口1 { int sum(int i, int j); …… 阅读全文