Passing a single item as IEnumerable

Well, if the method expects an IEnumerable you’ve got to pass something that is a list, even if it contains one element only.

passing

new[] { item }

as the argument should be enough I think

Leave a Comment