ソースコード using System; using System.Collections.Generic; public static class ListExtensions { public static void DropRight<T>( this List<T> self, int count ) { self.RemoveRange( self.Count - count, count ); } } 使い方 var list = new List<string> { "</string></t></t>…