Click here to Skip to main content
15,884,739 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to : Get the variable name in runtime ? Pin
musefan15-Jul-09 2:24
musefan15-Jul-09 2:24 
QuestionRe: How to : Get the variable name in runtime ? Pin
bonzaiholding15-Jul-09 2:29
bonzaiholding15-Jul-09 2:29 
AnswerRe: How to : Get the variable name in runtime ? Pin
musefan15-Jul-09 2:33
musefan15-Jul-09 2:33 
AnswerRe: How to : Get the variable name in runtime ? Pin
Eddy Vluggen15-Jul-09 2:46
professionalEddy Vluggen15-Jul-09 2:46 
GeneralRe: How to : Get the variable name in runtime ? Pin
Luc Pattyn15-Jul-09 2:50
sitebuilderLuc Pattyn15-Jul-09 2:50 
QuestionHow to Get AutoGenerate Code with Strings and Numbers in C# Pin
ChandrakanthGaddam15-Jul-09 2:12
ChandrakanthGaddam15-Jul-09 2:12 
AnswerRe: How to Get AutoGenerate Code with Strings and Numbers in C# Pin
dan!sh 15-Jul-09 2:17
professional dan!sh 15-Jul-09 2:17 
AnswerRe: How to Get AutoGenerate Code with Strings and Numbers in C# [modified] Pin
musefan15-Jul-09 2:17
musefan15-Jul-09 2:17 
How about...

string GetRandomString(int length)//length of random string
{
   System.Text.StringBuilder sb = new System.Text.StringBuilder(length);
   Random rnd = new Random();
   for(int i = 0; i < length; i++)
   {
      sb.Append((char)rnd.Next(33, 127));
   }
   return sb.ToString();
}


Life goes very fast. Tomorrow, today is already yesterday.

modified on Wednesday, July 15, 2009 9:08 AM

GeneralRe: How to Get AutoGenerate Code with Strings and Numbers in C# Pin
Luc Pattyn15-Jul-09 2:51
sitebuilderLuc Pattyn15-Jul-09 2:51 
Questionhi.. Pin
mjawadkhatri15-Jul-09 1:52
mjawadkhatri15-Jul-09 1:52 
AnswerRe: hi.. Pin
Tom Deketelaere15-Jul-09 1:55
professionalTom Deketelaere15-Jul-09 1:55 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:05
sitebuilderLuc Pattyn15-Jul-09 2:05 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:09
musefan15-Jul-09 2:09 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:14
sitebuilderLuc Pattyn15-Jul-09 2:14 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:22
musefan15-Jul-09 2:22 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:25
sitebuilderLuc Pattyn15-Jul-09 2:25 
GeneralRe: hi.. Pin
musefan15-Jul-09 2:31
musefan15-Jul-09 2:31 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 2:32
professionalTom Deketelaere15-Jul-09 2:32 
GeneralRe: hi.. Pin
Christian Graus15-Jul-09 2:48
protectorChristian Graus15-Jul-09 2:48 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 2:53
professionalTom Deketelaere15-Jul-09 2:53 
GeneralRe: hi.. Pin
Luc Pattyn15-Jul-09 2:53
sitebuilderLuc Pattyn15-Jul-09 2:53 
GeneralRe: hi.. Pin
Tom Deketelaere15-Jul-09 3:04
professionalTom Deketelaere15-Jul-09 3:04 
QuestionAutomatic Email Sender Pin
dev sheoran15-Jul-09 1:41
dev sheoran15-Jul-09 1:41 
AnswerRe: Automatic Email Sender Pin
Not Active15-Jul-09 2:25
mentorNot Active15-Jul-09 2:25 
GeneralRe: Automatic Email Sender Pin
Manas Bhardwaj15-Jul-09 2:29
professionalManas Bhardwaj15-Jul-09 2:29 

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.