摘要:
using System;using System.Runtime;using System.ComponentModel;using System.Collections.Generic;using System.Linq;using System.Text;namespace UCTest{ class Student { /// <summary> /// 学生姓名 /// </summary> [Category("学生基本信息")] [Browsable(true)] [DisplayName("姓名")] [Descr 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;namespace ClassLibrary1{ public class Class1 { private Dictionary<string, ListView> allListViews; public Class1() { allListViews = new Dictionary<string, ListView>(); } public sta 阅读全文
摘要:
using System;using System.Collections; namespace ConsoleEnum{ class Host { private const string DATA_ROOT_PTAH=@"..\..\data"; public Student Student { get; set; } public virtual Instrument Instrument { get { return new Instrument() { ID = 1021, Symbol = "IF1309(玻璃)", }; } } publi 阅读全文
摘要:
var objs=new object[]{new People(),new People(),new People(),}; foreach (var item in objs) { Console.WriteLine(item.GetHashCode()); } Car car = new Car() { Name = "W", Numbers = 10, }; Car[]cars = new Car[]{ new Car(){Name="Gan", Numbers=10,}, new Car(){Name="Quan",Numb 阅读全文