Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IEnumerable.Append

An IEnumerable extension that allows a single item to be concatenated to an existing enumerable collection. Microsoft added an Append method in the System.Linq namespace from .NET Framework 4.7.1. Use this package to get the same functionality in early versions.

Example

using System;
using System.Collections.Generic;
using IEnumerable.Append;

namespace Example
{
    public class Program
    {
        public static void Main(string[] args)
        {
            IEnumerable<string> input = new [] { "Lorem", "ipsum", "dolor", "sit" };

            IEnumerable<string> output = input.Append("amet");

            Console.WriteLine(string.Join(" ", output)); 
        }
    }
}

About

An IEnumerable extension that allows a single item to be concatenated to an existing enumerable collection.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages