Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using Fonts with Windows Forms Pin
Judah Gabriel Himango10-Apr-06 7:12
sponsorJudah Gabriel Himango10-Apr-06 7:12 
Questioncompare hashtable values Pin
kani9810-Apr-06 6:20
kani9810-Apr-06 6:20 
AnswerRe: compare hashtable values Pin
Ravi Bhavnani10-Apr-06 6:43
professionalRavi Bhavnani10-Apr-06 6:43 
GeneralRe: compare hashtable values Pin
kani9810-Apr-06 7:25
kani9810-Apr-06 7:25 
AnswerRe: compare hashtable values Pin
Ravi Bhavnani10-Apr-06 7:33
professionalRavi Bhavnani10-Apr-06 7:33 
GeneralRe: compare hashtable values Pin
leppie10-Apr-06 10:36
leppie10-Apr-06 10:36 
GeneralRe: compare hashtable values Pin
Ravi Bhavnani10-Apr-06 11:17
professionalRavi Bhavnani10-Apr-06 11:17 
GeneralRe: compare hashtable values Pin
leppie10-Apr-06 11:35
leppie10-Apr-06 11:35 
Ravi Bhavnani wrote:
Hmmm, actually a Hashtable is more expensive than an ArrayList, so I don't see how it will save you anything, since you can make similar calls (i.e. Contains() vs. ContainsKey()) to check for membership.


Contains() for Hashtable is O(1) where ArrayList is O(n), also using the indexer of the Hashtable you dont have to check for the existaence of the key, you just overwrite it. This operation will take the same time as what adding each key to an ArrayList would be (excluding checking for duplicates), hence the Hashtable will be much faster. Smile | :)


QuestionSteganography Pin
nwr_mn10-Apr-06 6:19
nwr_mn10-Apr-06 6:19 
AnswerRe: Steganography Pin
Ravi Bhavnani10-Apr-06 6:45
professionalRavi Bhavnani10-Apr-06 6:45 
QuestionLabel Transparency Issue Pin
Ben Gonzalez10-Apr-06 5:51
Ben Gonzalez10-Apr-06 5:51 
AnswerRe: Label Transparency Issue Pin
Ed.Poore10-Apr-06 6:47
Ed.Poore10-Apr-06 6:47 
QuestionRightToLeft bug with ShowDialog Pin
brian.hawley10-Apr-06 5:38
brian.hawley10-Apr-06 5:38 
AnswerRe: RightToLeft bug with ShowDialog Pin
brian.hawley28-Jul-06 22:52
brian.hawley28-Jul-06 22:52 
GeneralRe: RightToLeft bug with ShowDialog Pin
Muammar©20-Jan-10 21:57
Muammar©20-Jan-10 21:57 
AnswerI found the answer! Pin
Muammar©23-Jan-10 5:44
Muammar©23-Jan-10 5:44 
QuestionCan I get the original string from a HashCode? Pin
dekelc10-Apr-06 5:26
dekelc10-Apr-06 5:26 
AnswerRe: Can I get the original string from a HashCode? Pin
Judah Gabriel Himango10-Apr-06 5:41
sponsorJudah Gabriel Himango10-Apr-06 5:41 
GeneralRe: Can I get the original string from a HashCode? Pin
Werdna10-Apr-06 6:01
Werdna10-Apr-06 6:01 
GeneralRe: Can I get the original string from a HashCode? Pin
Judah Gabriel Himango10-Apr-06 7:10
sponsorJudah Gabriel Himango10-Apr-06 7:10 
AnswerRe: Can I get the original string from a HashCode? Pin
Guffa10-Apr-06 6:11
Guffa10-Apr-06 6:11 
Questionhooking keyboard from IE Pin
LMHP10-Apr-06 5:23
LMHP10-Apr-06 5:23 
Questionhooking keyboard from IE Pin
LMHP10-Apr-06 5:22
LMHP10-Apr-06 5:22 
QuestionProblem of begginer Pin
papa198010-Apr-06 4:10
papa198010-Apr-06 4:10 
AnswerRe: Problem of begginer Pin
albCode10-Apr-06 4:14
albCode10-Apr-06 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.