StartEnumerable
Creates an IEnumerable from a list of single entities in a Fluent-manner.
Source
public static IEnumerable<T> StartEnumerable<T>(this T item, params T[] objects) =>
objects.Prepend(item);
Example
class Workshop
{
public IEnumerable<string> Participants { get; set; }
}
var workshop = new Workshop{
Participants = "John"
.StartEnumerable(
"Bill",
"Sam",
"Mark")};