وعليكم السلام،
يمكن فعل ذلك بعدة طرق وهذه إحداها...مع مراعاة حالة الحرف z
public class Test
{
public static void Main()
{
string str1;
char[] arr1;
int l,i;
l=0;
char ch;
Console.Write("Input the string : ");
str1 = Console.ReadLine();
l=str1.Length;
arr1 = str1.ToCharArray(0, l); // Converts string into char array.
for(i=0; i < l; i++)
{
ch=arr1[i];
if (ch== 'z')
Console.Write('a');
else if (ch== 'Z')
Console.Write('A');
else
Console.Write((char)(((int)ch) + 1));
}
}
}