当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: //本文参阅 CSDN ccat 的 MarchLibrary 修改// C# 1.x 实现 "强类型元素唯一的 ArrayList"using System;using System.Collections;/// 任何元素的 Type 都应当等于指定的类型或为指定类型的子类。
 

 

 ·快速配置weblogic8.x的应用目录     »显示摘要«
    摘要:我们知道在weblogic7.x之前,安装完后weblogic会自动创建默认的应用目录defaultwebapp。如果没有特别的需要,就可以利用这个默认的应用目录布署web应用程序或者j2ee系统了。而在weblogic8.x之后版本中,它不会自动创建默认的应用目录。所以我们需要使用configuration wizard来创建自己的应用目录,发布应用目录有两种方法,现分别介绍。 1.weblog......
    摘要:struts提供了一个强大的html标签库来帮助你构建web应用程序。 by budi kurniawan 为了更容易、更快速地进行开发,struts提供了功能同其它jsp标签库类似的五个标签库,即:html、bean、logic、template和nested。。第一部分讲述如何配置一个struts应用程序来运用这个标签库,并介绍了第一组标签;第二部分讲述了第二组标签; html标签库主要用来显......


C# 1.x 实现 "强类型元素唯一的 ArrayList"

//本文参阅 csdn ccat 的 marchlibrary 修改

// c# 1.x 实现 "强类型元素唯一的 arraylist" 【程序编程相关:[原创]从 TWAIN 设备中扫描图像

【推荐阅读:[原创]构造一个方便高效 INI 类

using system; 【扩展信息:[原创]捕捉 OutputDebugSt

using system.collections;

/// 任何元素的 type 都应当等于指定的类型或为指定类型的子类.

/// 对于值类型,最好先行装箱再使用.

/// 作为 c# 1.x 语言实现泛型功能之前的代用品(运行时错误).

public class strongtypeuniquearraylist : arraylist

{

 private type _type;

 /// <summary>

 /// 禁止默认构造.

 /// </summary>

 private strongtypeuniquearraylist()

 {

 }

 /// <summary>

 /// 在容器初始化时指定其元素类型

 /// </summary>

 /// <param name="elementtype">arraylist (元素)类型</param>

 public strongtypeuniquearraylist(system.type elementtype)

 {

  _type = elementtype;

 }

 /// <summary>

 /// 不能再更改其内部元素类型.

 /// </summary>

 public type type

 {

  get

  {

   return _type;

  }

 }

 private bool ismatchtype(type etype)

 {

  return (etype == _type)|(etype.issubclassof(_type));

 }

 

 public override object this[int index]

 {

  set


...   下一页
    摘要:#---sys--- sys.encoding=gbksys.welcome=./login.html #---database--- ##---local--- db.driver=com.inet.tds.tdsdriver db.url=jdbc:inetdae:127.0.0.1:1433?database=chengkaodb&charset=gb2312db.pas......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE