CollectionTest
来源:互联网 发布:淘宝旺旺号 编辑:程序博客网 时间:2024/06/02 13:58
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
namespace CollectionTest
{
class Program
{
static void Main(string[] args)
{
Collection<User> coluser = new Collection<User>();
User tom = new User("Tom");
User jim = new User("Jim");
User lucy = new User("Lucy");
coluser.Add(tom); coluser.Add(tom); coluser.Add(tom);
coluser.Add(jim);
coluser.Add(lucy);
foreach (User u in coluser)
{
Console.WriteLine(u);
}
}
}
}
/*
Tom
Tom
Tom
Jim
Lucy
请按任意键继续. . .
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CollectionTest
{
class User
{
String name;
public User(String _name)
{
name = _name;
}
public override String ToString()
{
return name;
}
}
}
- collectionTest
- CollectionTest
- Docker 开启守护进程后 无法执行docker build 等指令
- Dubbo启动异常:Duplicate application config...
- UILable中的内容显示不同的风格
- Hive分析窗口函数(五) GROUPING SETS,GROUPING__ID,CUBE,ROLLUP
- SourceTree轻松管理git
- CollectionTest
- spring 抛出异常未能回滚解决方法
- php网页简单爬虫
- 移植BOA WEB服务器
- PHP使用curl_multi并发请求
- 机器学习经典书籍
- 将ECSHOP的广告链接地址去掉affiche.php改为绝对地址
- CUDA event 记录GPU端运行时间
- 仿QQ聊天界面里边的相册(QQ相册)