CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Encoding
C#
private static char[] base26Chars =  "abcdefghijklmnopqrstuvwxyz".ToCharArray();
 
public static string Base26Encode(Int64 value) {
    string returnValue = null;
    do {
        returnValue = base26Chars[value % 26] + returnValue;
        value /= 26;
    } while (value-- != 0);
 
    return returnValue;
by Robert.Eberhart   December 20, 2010 @ 6:57am
Tags: C#, Encoding
196 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate