You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to pass a collection to this method and have it return between X (minimum) and Y (maximum) items.
The method also accept an opt-in for returning NULL when the amount of picked items is zero.
This would return between zero and five items from the people collection. The method will return an empty collection when the amount of items that will be returned is zero.
This would return between zero and five items from the people collection. As we supply true as the third parameter, the method will return NULL when the amount of items that will be returned is zero.
Description
I want to be able to pass a collection to this method and have it return between X (minimum) and Y (maximum) items.
The method also accept an opt-in for returning NULL when the amount of picked items is zero.
LINQPad Code Example
This would return between zero and five items from the people collection. The method will return an empty collection when the amount of items that will be returned is zero.
This would return between zero and five items from the people collection. As we supply true as the third parameter, the method will return NULL when the amount of items that will be returned is zero.
What alternatives have you considered?
The following could be used as a workaround:
Could you help with a pull-request?
Yes
The text was updated successfully, but these errors were encountered: