Click here to Skip to main content
       

C#

 
GeneralRe: C# SqlTransaction PinmemberHbr_Tha_real14-Feb-13 9:08 
GeneralRe: C# SqlTransaction Pinmembermark merrens14-Feb-13 9:46 
GeneralRe: C# SqlTransaction PinmemberHbr_Tha_real14-Feb-13 11:17 
GeneralRe: C# SqlTransaction Pinmembermark merrens14-Feb-13 11:46 
QuestionClassic ASP and C# syntax Pinmembervanikanc14-Feb-13 8:11 
AnswerRe: Classic ASP and C# syntax Pinmembervanikanc14-Feb-13 10:54 
Questionalphanumeric counter PinmemberAngela Scheuvront14-Feb-13 7:41 
AnswerRe: alphanumeric counter PinmemberJibesh14-Feb-13 9:04 
Just split the counter as shown below
 
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 PinmemberMatt T Heffron14-Feb-13 9:28 
GeneralRe: alphanumeric counter PinmemberJibesh14-Feb-13 9:29 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 9:13 
QuestionRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 9:52 
AnswerRe: alphanumeric counter PinmemberAngela Scheuvront14-Feb-13 10:15 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 10:25 
GeneralRe: alphanumeric counter PinmemberAngela Scheuvront15-Feb-13 1:45 
AnswerRe: alphanumeric counter PinmemberRichard Deeming15-Feb-13 1:37 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron15-Feb-13 7:39 
QuestionStreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 6:15 
AnswerRe: StreamWriter.WriteAsync PinmvpDave Kreskowiak14-Feb-13 7:31 
GeneralRe: StreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 8:33 
GeneralRe: StreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 8:55 
Questionsingle selection of radio buttons in a table PinmemberMember 258173814-Feb-13 4:36 
AnswerRe: single selection of radio buttons in a table PinmvpRichard MacCutchan14-Feb-13 4:58 
AnswerRe: single selection of radio buttons in a table PinmemberAlan Balkany14-Feb-13 5:04 
QuestionBetter code Pinmembersource.compiler14-Feb-13 3:57 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 2 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid