Skip to content

Instantly share code, notes, and snippets.

@ViIvanov
Created June 10, 2015 16:12
Show Gist options
  • Save ViIvanov/d879902886baf5a9d224 to your computer and use it in GitHub Desktop.
Save ViIvanov/d879902886baf5a9d224 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
static class Program
{
static void Add(IReadOnlyCollection<object> items) { }
static void Add(IEnumerable<IReadOnlyCollection<object>> items) { }
static void Main() {
var list = new List<object[]>();
Add(list); // Which one called?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment