Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 9:08
Hbr_Tha_real14-Feb-13 9:08 
GeneralRe: C# SqlTransaction Pin
R. Giskard Reventlov14-Feb-13 9:46
R. Giskard Reventlov14-Feb-13 9:46 
GeneralRe: C# SqlTransaction Pin
Hbr_Tha_real14-Feb-13 11:17
Hbr_Tha_real14-Feb-13 11:17 
GeneralRe: C# SqlTransaction Pin
R. Giskard Reventlov14-Feb-13 11:46
R. Giskard Reventlov14-Feb-13 11:46 
QuestionClassic ASP and C# syntax Pin
vanikanc14-Feb-13 8:11
vanikanc14-Feb-13 8:11 
AnswerRe: Classic ASP and C# syntax Pin
vanikanc14-Feb-13 10:54
vanikanc14-Feb-13 10:54 
Questionalphanumeric counter Pin
Angela Scheuvront14-Feb-13 7:41
Angela Scheuvront14-Feb-13 7:41 
AnswerRe: alphanumeric counter Pin
Jibesh14-Feb-13 9:04
professionalJibesh14-Feb-13 9:04 
Just split the counter as shown below

C#
string base36Characters = "0123456789";
string base36Alaphs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

string toBase36(int x, int digits)
{
  char[] result = new char[digits];
  for (int i = digits - 1; i >= 0; --i)
  {
      result[i] = base36Characters[x % 10];
       x /= 10;
   }
   return new string(result);
}

IEnumerable<string> base36Counter()
 {
    for (int i = 0; i < base36Alaphs.Length; i++)
    {
      for (int n = 0; n <; 10 * 10 * 10 * 10; ++n)
      {
         yield return base36Alaphs[i] + toBase36(n, 4);
      }
   }
}

void Run()
{
    foreach (string s in base36Counter())
        Console.WriteLine(s);
}


GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 9:28
professionalMatt T Heffron14-Feb-13 9:28 
GeneralRe: alphanumeric counter Pin
Jibesh14-Feb-13 9:29
professionalJibesh14-Feb-13 9:29 
GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 9:13
professionalMatt T Heffron14-Feb-13 9:13 
QuestionRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 9:52
professionalMatt T Heffron14-Feb-13 9:52 
AnswerRe: alphanumeric counter Pin
Angela Scheuvront14-Feb-13 10:15
Angela Scheuvront14-Feb-13 10:15 
GeneralRe: alphanumeric counter Pin
Matt T Heffron14-Feb-13 10:25
professionalMatt T Heffron14-Feb-13 10:25 
GeneralRe: alphanumeric counter Pin
Angela Scheuvront15-Feb-13 1:45
Angela Scheuvront15-Feb-13 1:45 
AnswerRe: alphanumeric counter Pin
Richard Deeming15-Feb-13 1:37
mveRichard Deeming15-Feb-13 1:37 
GeneralRe: alphanumeric counter Pin
Matt T Heffron15-Feb-13 7:39
professionalMatt T Heffron15-Feb-13 7:39 
QuestionStreamWriter.WriteAsync Pin
wizardzz14-Feb-13 6:15
wizardzz14-Feb-13 6:15 
AnswerRe: StreamWriter.WriteAsync Pin
Dave Kreskowiak14-Feb-13 7:31
mveDave Kreskowiak14-Feb-13 7:31 
GeneralRe: StreamWriter.WriteAsync Pin
wizardzz14-Feb-13 8:33
wizardzz14-Feb-13 8:33 
GeneralRe: StreamWriter.WriteAsync Pin
wizardzz14-Feb-13 8:55
wizardzz14-Feb-13 8:55 
Questionsingle selection of radio buttons in a table Pin
Member 258173814-Feb-13 4:36
Member 258173814-Feb-13 4:36 
AnswerRe: single selection of radio buttons in a table Pin
Richard MacCutchan14-Feb-13 4:58
mveRichard MacCutchan14-Feb-13 4:58 
AnswerRe: single selection of radio buttons in a table Pin
Alan Balkany14-Feb-13 5:04
Alan Balkany14-Feb-13 5:04 
QuestionBetter code Pin
ali_heidari_14-Feb-13 3:57
ali_heidari_14-Feb-13 3:57 

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.