Convert String Alternate characters in upper and lower case

Alternate characters in upper and lower case

Ex -
mumbai
MuMbAi

Hi,

Can you try the following?

String.Join("",yourString.Select(function(c,i) if(i Mod 2 =0,c.ToString.ToUpper,c.ToString.ToLower)))

Regards,

1 Like