asp.net技术内幕的书配源码

源代码在线查看: containsarraylist.aspx

软件大小: 1547 K
上传用户: gsxyndll
关键词: asp net 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				void Page_Load(Object sender , EventArgs e) 
				{
					ArrayList colArrayList;
					Random objRanNumber;
					int intCounter;
					 
					colArrayList = new ArrayList();
					objRanNumber = new Random();
				
					for (int i = 0; i < 1000; i++)
					{
						colArrayList.Add( objRanNumber.Next( 1000 ) );
					}
				
					if ( colArrayList.Contains( 53 ) )
					{
						Response.Write( "Found 53!" );
					}
					else
					{
						Response.Write( "Couldn't Find 53!" );
					}
				}
				
				
				
				
							

相关资源