Search This Blog

Wednesday, 18 December 2024

SkipWhile should be renamed SkipUntil .NET C#

 Very deceiving method.

use of the word "While"

๐’๐จ๐ฆ๐ž ๐ข๐ฆ๐ฉ๐จ๐ซ๐ญ๐š๐ง๐ญ ๐ฉ๐จ๐ข๐ง๐ญ๐ฌ ๐š๐›๐จ๐ฎ๐ญ ๐’๐ค๐ข๐ฉ๐–๐ก๐ข๐ฅ๐ž(): ๐Ÿ”ธ The most important point is that once the condition fails, the SkipWhile() method ๐ฐ๐ข๐ฅ๐ฅ ๐ง๐จ๐ญ ๐œ๐ก๐ž๐œ๐ค ๐ญ๐ก๐ž ๐ซ๐ž๐ฌ๐ญ ๐จ๐Ÿ ๐ญ๐ก๐ž ๐ข๐ญ๐ž๐ฆ๐ฌ even though the condition is true for some remaining items. 

 

No comments:

Post a Comment

Popular Posts