Menu

#6 Make public methods more "interfaced" or "strongly typed"

open
nobody
API (4)
5
2006-08-21
2006-08-21
No

There is a little inconsistency between the method
signatures and the arguments they take. Some methods
take an ArrayList of string for servers, and other
methods take a string[]. In some other cases methods
take a Hashtable when they should really take an
IDictionary (in case people want to use a
ListDictionary or a HybridDictionary).

Proposal:
All methods should take either a string[] or an
IDictionary, preferring the string[] when possible.

Discussion


Log in to post a comment.