.NET中自己构建一个ArrDictionary
Public Class ArrDictionary
Private objCollection As New Collection
Private objDic As New DictionaryEntry
Private strKey, strValue As String
Public i As Integer
Public Function Item(ByVal Index As Integer) As Object
Try
Item = objCollection.Item(Index)
Catch ex As Exception
Item = "错误,无此项!"
End Try
End Function
Public Function Item(ByVal Key As String) As Object
Try
Item = objCollection.Item(Key)
Catch ex As Exception
Item = "错误,无此项!"
End Try
End Function
Public Sub Add(ByVal Key As String, ByVal Value As String)
objDic.Key = Key
objDic.Value = Value
objCollection.Add(objDic, objDic.Key)
i = 1
End Sub
Protected Overrides Sub Finalize()
您可能感兴趣的文章:
.NET中自己构建一个ArrDictionary
ASP.NET中用healthMonitor属性用法
.NET开发 程序员必备工具 -- FxCop:监视代码工具
通过Visual C#.NET建一个DTS任务
C#开源资源
用vmime收取邮件/解析邮件 教程
.net入门教程:ASP.NET 在网页使用方法
php架构师都要会什么
php构造函数的小例子
ADO 与ADO.NET