Possible Duplicate:
Why does Enumerable.All return true for an empty sequence?
Code:
var line = "name:";
Console.Write(line.Split(new char[] { ':' })[1].All(char.IsDigit));
How it is possible? it should not return false? after:
is an empty string.
To remove duplicate values, click Data > Data Tools > Remove Duplicates. To highlight unique or duplicate values, use the Conditional Formatting command in the Style group on the Home tab.
The duplicate-checking formula uses =COUNTIF to “count” which cells contain data that appears more than once throughout the spreadsheet. Resulting values can either be “TRUE” (indicating duplicate data) or “FALSE” (showing non-duplicate data).
Trailing or leading spaces Probably the most common cause of Excel not recognizing duplicates. Check if the one cell has trailing, leading or extra spaces in the cell. Excel sees the space as an individual character but humans tend to ignore it.
Enumerable.All
true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With