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));