Click here to Skip to main content
15,905,322 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is Index Services Support Contents wildcard to extract/Search text in Files ? Pin
alisolution26-Jul-09 21:56
alisolution26-Jul-09 21:56 
Questionwhat are the assemblies required for c# BHO to run in all environment? Pin
svt gdwl26-Jul-09 20:02
svt gdwl26-Jul-09 20:02 
AnswerRe: what are the assemblies required for c# BHO to run in all environment? Pin
SeMartens26-Jul-09 20:59
SeMartens26-Jul-09 20:59 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
svt gdwl26-Jul-09 21:37
svt gdwl26-Jul-09 21:37 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
SeMartens26-Jul-09 21:46
SeMartens26-Jul-09 21:46 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
svt gdwl26-Jul-09 22:29
svt gdwl26-Jul-09 22:29 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
SeMartens26-Jul-09 22:34
SeMartens26-Jul-09 22:34 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
svt gdwl26-Jul-09 23:07
svt gdwl26-Jul-09 23:07 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
SeMartens26-Jul-09 23:09
SeMartens26-Jul-09 23:09 
GeneralRe: what are the assemblies required for c# BHO to run in all environment? Pin
svt gdwl26-Jul-09 23:20
svt gdwl26-Jul-09 23:20 
QuestionNon-Blocking Socket Definition Pin
M Riaz Bashir26-Jul-09 19:41
M Riaz Bashir26-Jul-09 19:41 
AnswerRe: Non-Blocking Socket Definition Pin
Abhijit Jana26-Jul-09 20:12
professionalAbhijit Jana26-Jul-09 20:12 
QuestionHow I can get the Modified date of a file ? Pin
E_Gold26-Jul-09 19:31
E_Gold26-Jul-09 19:31 
AnswerRe: How I can get the Modified date of a file ? Pin
King Julien26-Jul-09 20:12
King Julien26-Jul-09 20:12 
GeneralRe: How I can get the Modified date of a file ? Pin
E_Gold27-Jul-09 2:55
E_Gold27-Jul-09 2:55 
GeneralRe: How I can get the Modified date of a file ? Pin
King Julien27-Jul-09 3:15
King Julien27-Jul-09 3:15 
QuestionArabic Pin
Member 254517626-Jul-09 19:21
Member 254517626-Jul-09 19:21 
AnswerRe: Arabic Pin
Mohammad Dayyan26-Jul-09 19:47
Mohammad Dayyan26-Jul-09 19:47 
Questioncode 4 random number without repeating number in a row . Pin
OLUMADE26-Jul-09 11:48
OLUMADE26-Jul-09 11:48 
AnswerRe: code 4 random number without repeating number in a row . Pin
Christian Graus26-Jul-09 12:11
protectorChristian Graus26-Jul-09 12:11 
AnswerRe: code 4 random number without repeating number in a row . [modified] Pin
PIEBALDconsult26-Jul-09 12:42
mvePIEBALDconsult26-Jul-09 12:42 
Ah, there you are, I figured you'd show up eventually. Big Grin | :-D

See here[^].

However, if you want several unique sequences of the same values, you may need to go a step further.




Add:

As you're generating a sequence, make a base-40 string of it. Have a HashSet<string> to hold the sequences you've already generated. If the sequence is a duplicate, try again; if not, add it to the HashSet and return it.

You can generate a base-40 digit with "0123456789ABCDEFGHIJKLMNOPQRSTUVQXYZabcd" [ i ] and append it to a StringBuilder.

modified on Sunday, July 26, 2009 8:37 PM

QuestionUnicode Pin
hadad26-Jul-09 4:03
hadad26-Jul-09 4:03 
AnswerRe: Unicode Pin
Manas Bhardwaj26-Jul-09 4:16
professionalManas Bhardwaj26-Jul-09 4:16 
AnswerRe: Unicode Pin
harold aptroot26-Jul-09 4:48
harold aptroot26-Jul-09 4:48 
QuestionC# datagridview display Question Pin
spankyleo12326-Jul-09 3:26
spankyleo12326-Jul-09 3:26 

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.