Created
February 6, 2025 07:40
-
-
Save poyakarami/5d91bd69a58f1a7cc0f6cc3e547d8297 to your computer and use it in GitHub Desktop.
This file contains 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
// Data Source | |
List<int> intList = new List<int> | |
{ | |
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 | |
}; | |
// Query | |
var Query = from x in intList // Data Source | |
where x > 5 // Condition | |
select x; // Selection | |
// result | |
foreach (var item in Query) | |
{ | |
Console.WriteLine($"{item}"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment