Created
January 23, 2020 22:34
-
-
Save ffMathy/7164ec15eccd145927c6f4074a391d6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string?[] nullableStringArray = new [] | |
{ | |
"hello", | |
null, | |
"world" | |
}; | |
var valuesThatAreNotNullTrimmed = nullableStringArray | |
.Where(x => x != null) | |
.Select(x => x.Trim()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment