January 2012
Intermediate to advanced
396 pages
8h 16m
English
Follow the given steps:
Palindrome Checker.IsPalindromic() with the following signature:public static bool IsPalindromic<T>(IEnumerable<T> inputSequence)
where T:IComparable
{
Stack<T> buffer = new Stack<T>();
return true;
}Main() method:static void Main(string[] args)
{
bool status = IsPalindromic<char>(new int[] { 1, 2, 2, 1 });
}You will see a compiler error as shown in the following screenshot:

Let's see why that compile-time error occurred. ...
Read now
Unlock full access