うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-06-02から1日間の記事一覧

【C#】配列の要素を入れ替える

C#

using System.Collections.Generic; public static class ListUtil { /// <summary> /// Replace Index1 and index2 /// </summary> public static void Replace<T>(this IList<T> self, int index1, int index2) { if (self.Count <= index1 || self.Count <= index2) return; var ca</t></t>…