All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
如何实现SQL Server 2005快速web分页_[SQL Server教程]
确保PHP安全,不能违反的四条安全规则_php资料_编程技术
ASP.NET2.0图片格式转换_[Asp.Net教程]
ASP.NET,MVC,Framework体验(4):控制器_[Asp.Net教程]
javascript代码混淆综合解决方案_JavaScript技术_编程技术
ASP.NET技巧:同时对多个文件进行大量写操作对性能优化_[Asp.Net教程]
调整Windows参数提高SQL,Server性能_mssql学习_编程技术
使用AdminScripts脚本创建虚拟目录_.net资料_编程技术
ASP.NET,2.0处理Null值_[Asp.Net教程]
visual c++类中的友元函数
Reading number is top 10 pictures
The most popular girls welcome eggplant
The real super beauty15
The money of more than 100 countries and regions18
2012 national geographic daily picture8
The wise woman of chest2
Gang rape
清扫五脏垃圾,我有绝招
Green sweet joey wong young old photos exposure
Born After 90 Beijing sports university campus flower photos5
Ashlynn Brooke a group sexy photo1
Download software ranking
仙剑奇侠传98版歌曲
SQL2000 For 4IN1
Detective task-the top secret prostitution files
Unix video tutorial3
双旗镇刀客A
Unix video tutorial8
美女写真1
ASP.NET.2.0.XML.高级编程(第3版)
Kung fu panda - the secret of the teacher
仙剑奇侠传98硬盘WINXP版
delv published in(发表于) 2014/1/27 6:49:25 Edit(编辑)
C#开发里List控件的使用方法介绍_[Asp.Net教程]

C#开发里List控件的使用方法介绍_[Asp.Net教程]

C#开发里List控件的使用方法介绍_[Asp.Net教程]

  今天我们一起来学习一下C#里List的用法。


  主程序代码:



以下是引用片段:
static void Main(string[] args)
  {
  ClassList listClass = new ClassList();
  Console.WriteLine("请输入第个字符串");
  string a = Console.ReadLine();
  Console.WriteLine("请输入第二个字符串");
  string b = Console.ReadLine();
  foreach (string n in listClass.strList(a, b))
  {
  Console.WriteLine(n);
  }


  类:



以下是引用片段:
class ClassList
  {
  public List strList(string str1,string str2)
  {
  string stra = str1 + str2;
  string strb = str2 + str1;
  string strc = str1 + str1;
  List listStr = new List();
  listStr.Add(stra);
  listStr.Add(strb);
  listStr.Add(strc);
  return listStr;
  }
  }







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.