Skip to content

Instantly share code, notes, and snippets.

@AnthonyDGreen
Created February 9, 2019 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnthonyDGreen/15d0b3dce2edb9e8cae6b40c68260ffb to your computer and use it in GitHub Desktop.
Save AnthonyDGreen/15d0b3dce2edb9e8cae6b40c68260ffb to your computer and use it in GitHub Desktop.
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