.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;

Afficher(RotaterDroite(new List<int>(){ 2 }));
Afficher(RotaterDroite(new List<int>(){}));
Afficher(RotaterDroite(new List<int>(){ 2, 3 }));
Afficher(RotaterDroite(new List<int>(){ 2, 3, 5, 7, 11 }));

static void Afficher<T>(IEnumerable<T> elems)
{
   foreach(T e in elems)
      Console.Write($"{e} ");
   Console.WriteLine();
}
static List<T> RotaterDroite<T>(List<T> src)
{
   List<T> dest = new(src);
   for(int i = dest.Count - 1; i > 0; --i)
	   (dest[i-1], dest[i]) = (dest[i], dest[i-1]); // permuter
   return dest;
}
;