From bab789c65f254ba3dfe9813e0ae05ecdd235c2f0 Mon Sep 17 00:00:00 2001 From: Grabacr07 Date: Fri, 6 Dec 2024 04:13:45 +0900 Subject: [PATCH] Minor changes --- src/MetroTrilithon.sln.DotSettings | 6 ++++-- src/MetroTrilithon/Linq/EnumerableFx.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/MetroTrilithon.sln.DotSettings b/src/MetroTrilithon.sln.DotSettings index 2cf9fc5..0904967 100644 --- a/src/MetroTrilithon.sln.DotSettings +++ b/src/MetroTrilithon.sln.DotSettings @@ -71,7 +71,7 @@ 1 True - 1 + 2 NEVER NEVER False @@ -81,7 +81,7 @@ False False ALWAYS - False + False ALWAYS_USE ON_SINGLE_LINE @@ -94,6 +94,8 @@ False True + CHOP_ALWAYS + diff --git a/src/MetroTrilithon/Linq/EnumerableFx.cs b/src/MetroTrilithon/Linq/EnumerableFx.cs index 9c864f8..865f2dc 100644 --- a/src/MetroTrilithon/Linq/EnumerableFx.cs +++ b/src/MetroTrilithon/Linq/EnumerableFx.cs @@ -57,7 +57,7 @@ public static IEnumerable Padding(this IEnumerable source, int count, F { // めっっっちゃ適当な実装なので後でなんとかしたい - if (source is not IList {IsReadOnly: false} list) list = source.ToList(); + if (source is not ICollection { IsReadOnly: false } list) list = source.ToList(); while (list.Count < count) list.Add(selector(list.Count));