摘要:
namespace 索引器在接口中使用 { public interface Ifindex//定义一个接口 { int this[int index]//声明索引 { get; set; } } public class TestIndex:Ifindex//继承接口 { int[] myint 阅读全文
posted @ 2022-05-28 22:11
sbwynnss
阅读(43)
评论(0)
推荐(0)
摘要:
namespace 属性Set与Get { class Program { static void Main(string[] args) { EmployeeInformation emp = new EmployeeInformation();//创建对象 //以下是对字段的一般性赋值: emp 阅读全文
posted @ 2022-05-28 15:11
sbwynnss
阅读(50)
评论(0)
推荐(0)
摘要:
using System.Collections;//必须添加的命名空间 namespace 迭代的一般应用 { class Program { static void Main(string[] args) { IterationMonths im = new IterationMonths(); 阅读全文
posted @ 2022-05-28 11:22
sbwynnss
阅读(20)
评论(0)
推荐(0)
浙公网安备 33010602011771号