Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSharpExamples
{
struct Point
{
public int X { get { return 0; } }
public int Y { get { return 0; } }
}
class Foo
{
public IEnumerable<Point> Select<T>(Func<string, T> selector)
{
return new Point[0];
}
}
static class Program
{
static void Main(string[] args)
{
var c = new Foo();
var q = from X in c let Y = "" select Y.CompareTo(-1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.