c# reverse list
List<string> authors = new List<string>();
authors.Add("Your dad")
authors.Add("Your mum")
authors.Reverse();
c# reverse list
List<string> authors = new List<string>();
authors.Add("Your dad")
authors.Add("Your mum")
authors.Reverse();
c# reverse string
public static string ReverseString(string s)
{
char[] arr = s.ToCharArray();
Array.Reverse(arr);
return new string(arr);
}
c# reverse array
using System;
namespace Demo {
class MyArray {
static void Main(string[] args) {
int[] list = { 29, 15, 30, 98};
int[] temp = list;
Console.Write("Original Array: ");
foreach (int i in list) {
Console.Write(i + " ");
}
Console.WriteLine();
// reverse the array
Array.Reverse(temp);
Console.Write("Reversed Array: ");
foreach (int i in temp) {
Console.Write(i + " ");
}
Console.ReadKey();
}
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us