Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write code for palindrome?

Answer Posted / karthi sanjivi

class Program
{
static void Main()
{
Console.WriteLine("Please Enter Value : ");
string _strValue = Console.ReadLine();
bool res = CheckPalindrome(_strValue);
Console.WriteLine(res);
Console.ReadLine();
}

private static bool CheckPalindrome(string _strValue)
{
string _strTempValue = _strValue;
string _strRevValue = string.Empty;
char[] ch = _strTempValue.ToCharArray();
Array.Reverse(ch);
_strRevValue = new string(ch);
return (_strRevValue == _strValue);
}
}

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is different between Boxing and Unboxing?

1019


What is difference between singleton and static class in c#?

951


Classes and structs can be declared as static, is this statement true or false?

1053


What is the best dependency injection c#?

882


Can you instantiate a struct without using a new operator in c#?

952


What is xml serialization in c#?

883


Why can’t struct be used instead of class for storing entity?

962


Can arraylist hold primitive types?

1044


What is parsing?

933


Wht executescaler method is used?

962


What is the usage of Enumeration in C# Programming and is it good to use or not ?

981


Is null or empty in c#?

964


What to implement on my class Finalize or IDisposable

987


Why do we use namespace in c#?

958


What is difference between array and collection?

1085