LINQ生成操作

在LINQ中, 生成操作用于创建元素的新序列。在LINQ中, 我们提供了另一种类型的生成运算符方法。这些是:

  1. DefaultfEmpty
  2. Range
  3. Repeat
  4. Empty
LINQ生成操作

这些LINQ生成运算符将帮助我们生成新的元素序列。

下表显示了与生成运算符方法有关的更多详细信息。

Method Description
DefaultfEmpty 如果集合包含空元素, 则它将返回默认值。
Empty 它返回空的序列集合。
Range 它返回包含数字序列的集合。
Repeat 它返回一个包含基于指定长度的重复值的集合。

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_48545.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?