You can use Dictionary<K,V> then, i.e.
Dictionary<string, OleDbConnection> dict = new Dictionary<string,
OleDbConnection>();
dict.Add("...", conn);
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development
www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
"John" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I am on vs2008, can use any.
>
> Regards
>
> "Miha Markic" <miha at rthand com> wrote in message
> news:(E-Mail Removed)...
>> What .net version are you using?
>>
>> --
>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>> RightHand .NET consulting & development www.rthand.com
>> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>>
>> "John" <(E-Mail Removed)> wrote in message
>> news:%23$k%(E-Mail Removed)...
>>> Thank. Could you tell ma how to declare a hashtable of type
>>> OleDb.OleDbConnection with a string type subscript?
>>>
>>> Thanks
>>>
>>> regards
>>>
>>>
>>> "Miha Markic" <miha at rthand com> wrote in message
>>> news:(E-Mail Removed)...
>>>> You mean the value part? Sure, why not.
>>>> However, I would recommend, as stated in previous post, to avoid
>>>> retaining connections - that's the connection pool's job.
>>>>
>>>> --
>>>> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
>>>> RightHand .NET consulting & development www.rthand.com
>>>> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>>>>
>>>> "John" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> Can hashtable be of type OleDb.OleDbConnection?
>>>>
>>>
>>>
>>
>
>