Click here to Skip to main content
14,775,594 members
Home » Discussions » C#
   

C#

 
AnswerRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
OriginalGriff27-May-19 1:43
mveOriginalGriff27-May-19 1:43 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Abdalla Ben Omran27-May-19 1:59
MemberAbdalla Ben Omran27-May-19 1:59 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
OriginalGriff27-May-19 2:05
mveOriginalGriff27-May-19 2:05 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Abdalla Ben Omran27-May-19 2:56
MemberAbdalla Ben Omran27-May-19 2:56 
GeneralRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
Gerry Schmitz27-May-19 8:58
mveGerry Schmitz27-May-19 8:58 
AnswerRe: How to get the Count of webseit visitors using Razor ASP.Core ? Pin
#realJSOP27-May-19 8:34
mva#realJSOP27-May-19 8:34 
QuestionHow to replace every different char with another given char Pin
Member 1379031625-May-19 6:49
MemberMember 1379031625-May-19 6:49 
AnswerRe: How to replace every different char with another given char Pin
Richard MacCutchan25-May-19 7:04
mveRichard MacCutchan25-May-19 7:04 
You can use the collating sequence of alphabetic and numeric characters to test whether they are in a certain range, and also to increment them to the next character, as follows:
string inputString = "The quick brown fox jumps over the lazy dog";
char[] chars = new char[inputString.Length];
for (int i = 0; i < inputString.Length; i++)
{
    if (inputString[i] >= 'a' && inputString[i] < 'h') // is it between a and g (lower case only)
        chars[i] = (char)(inputString[i] + 1);         // yes, add 1 to make it the next letter
    else
        chars[i] = inputString[i];                     // no, copy direct to the output buffer
}
Console.WriteLine(chars);

AnswerRe: How to replace every different char with another given char Pin
OriginalGriff25-May-19 7:34
mveOriginalGriff25-May-19 7:34 
JokeRe: How to replace every different char with another given char Pin
Eddy Vluggen25-May-19 11:05
professionalEddy Vluggen25-May-19 11:05 
AnswerRe: How to replace every different char with another given char Pin
Gerry Schmitz25-May-19 7:59
mveGerry Schmitz25-May-19 7:59 
AnswerRe: How to replace every different char with another given char Pin
BillWoodruff25-May-19 19:43
mveBillWoodruff25-May-19 19:43 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031625-May-19 23:33
MemberMember 1379031625-May-19 23:33 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 0:29
mveBillWoodruff26-May-19 0:29 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031626-May-19 1:23
MemberMember 1379031626-May-19 1:23 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 1:50
mveBillWoodruff26-May-19 1:50 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031626-May-19 2:52
MemberMember 1379031626-May-19 2:52 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 19:57
mveBillWoodruff26-May-19 19:57 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031626-May-19 20:01
MemberMember 1379031626-May-19 20:01 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff26-May-19 22:16
mveBillWoodruff26-May-19 22:16 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031627-May-19 1:33
MemberMember 1379031627-May-19 1:33 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff27-May-19 1:46
mveBillWoodruff27-May-19 1:46 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031627-May-19 1:56
MemberMember 1379031627-May-19 1:56 
GeneralRe: How to replace every different char with another given char Pin
BillWoodruff27-May-19 3:39
mveBillWoodruff27-May-19 3:39 
GeneralRe: How to replace every different char with another given char Pin
Member 1379031628-May-19 9:29
MemberMember 1379031628-May-19 9: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.