Question: You will create a solution containing two projects: the first project will be a class library (DLL), the other will be a console app. The

You will create a solution containing two projects: the first project will be a class library (DLL), the other will be a console app.

The DLL you create must contain the following extension methods:

void Print() Targets IEnumerable. Prints out the objects in any collection, separating each value with a comma (,) while making sure there is NO dangling tail symbol.

int ToPower(int exponent) Targets int. Returns the value of the target int raised to the power of the exponent parameter.

bool IsPalindrome() Targets string. Returns a bool signifying whether the string is a palindrome (reads backward the same as forward; Bob, racecar, tacocat), ignoring both casing and any whitespace. For example, tacocat, tAcoCaT and taco cat are all the same palindrome.

In addition, you must come up with 3 more extension methods that operate against any of C#s baked-in types.

Your extension methods must be NEW functionality and cannot mimic existing methods or extension methods for the targeted type.

For all of the extension methods, use C# documentation comments (aka the triple-slash comments) to explain what each function does.

The console project must import your DLL and demonstrate all 6 extension methods. Use meaningful console output to prove your methods work.

In the case of IsPalindrome, demonstrate both results (false and true).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!