Skip to content

pellet/Genesis.Join

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Genesis.Join

Build status

What?

All Genesis.* projects are formalizations of small pieces of functionality I find myself copying from project to project. Some are small to the point of triviality, but are time-savers nonetheless. They have a particular focus on performance with respect to mobile development, but are certainly applicable outside this domain.

Genesis.Join adds a convenient Join extension method to IEnumerable<string>, allowing an enumerable of strings to be joined together with a configurable separator. It is delivered as a PCL targeting a wide range of platforms, including:

  • .NET 4.5
  • Windows 8
  • Windows Store
  • Windows Phone 8
  • Xamarin iOS
  • Xamarin Android

Why?

Joining strings in an enumerable is something I find myself needing to do quite often. When performed within a LINQ pipeline, it's more elegant and simpler to read using an extension method than using string.Join directly.

Where?

The easiest way to get Genesis.Join is via NuGet:

Install-Package Genesis.Join

How?

You can simply call Join against any IEnumerable<string>:

var customerNames = this
    .customers
    .Select(customer => customer.Name)
    .Join(", ");

Who?

Genesis.Join is created and maintained by Kent Boogaart. Issues and pull requests are welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • F# 62.9%
  • C# 35.2%
  • Batchfile 1.9%