Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What are ASC() and CHR() in C#?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00893241
Message ID:
00893337
Vues:
15
>
>I hade to learn this when I was working with MD5 and Sha1 encryption...
>
>In order to get the ASCII Value for each Charactor you would use this code:
>
>using System.Text;
>
>string oString = "Your String";
>ASCIIEncoding ea = new ASCIIEncoding();
>byte[] bString = ea.GetBytes(oString);
>
>Now you have an array of the ASCII Value for your string.
>
>In order to replace charactors in your string you would use the following code:
>
>using System.Text;
>
>string oString = "racecar";
>oString.Replace("c","k"); // "racecar" is now "rakekar"
>
>Hope this helps!


Victor,
Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform