Checking If A String Is Palindrome Or Not In C#

This program tells us whether the given string is a palindrome or not. But before we proceed further, it is very important to know what a palindrome is. A palindrome is a word, number, or sequence of characters which is the same whether we read it forward or from backward.
 
Example
 
mom, madam, racecar, 1001, and many more.
 
Now, let us move to the C# coding part. The code is simple so there is no need to explain it. 
  1. class Program  
  2.   {  
  3.       static void Main(string[] args)  
  4.       {  
  5.           Console.WriteLine("Enter the String");  
  6.           Console.WriteLine("------------------");  
  7.           string GetText = Console.ReadLine();  
  8.           Program p = new Program();  
  9.           p.Palindrome(GetText);  
  10.           Console.ReadLine();  
  11.   
  12.       }  
  13.       public void Palindrome(string str)  
  14.       {  
  15.           string rev = "";  
  16.           for(int i=str.Length-1;i>=0;i--)  
  17.           {  
  18.               rev += str[i].ToString();  
  19.                 
  20.           }  
  21.           Console.WriteLine("Reversed String:");  
  22.           Console.WriteLine("-----------------");  
  23.           Console.WriteLine(rev);  
  24.           Console.WriteLine("-----------------");  
  25.           if(rev==str)  
  26.           {  
  27.               Console.WriteLine("The given string {0} is Palindrome",str);  
  28.           }  
  29.           else  
  30.           {  
  31.               Console.WriteLine("The given string {0} is not Palindrome",str);  
  32.           }  
  33.       }  
  34.   }   
Hope you find this helpful