Generics are an amazing feature of C# and many other languages. They enable us to write code once and use it with many different types. What does that mean? Well, let’s find out!
This is an exercise for this YouTube video.
Happy learning and good luck!
[qsm quiz=11]
Assignment: Create a method which will reverse the order of any array.
Click to see the answer
static T[] ReverseArray(T[] array)
{
T[] reversedArray = new T[array.Length];
for (int i = array.Length - 1; i >= 0; i--)
reversedArray[array.Length - 1 - i] = array[i];
return reversedArray;
}

Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://accounts.binance.com/register?ref=P9L9FQKY
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://accounts.binance.com/register/person?ref=JW3W4Y3A