Search code examples
iqueryableexpressioncustom-linq-providersexpressionvisitor

System.Linq.Expressions.ExpressionVisitor is inaccessible due to its protection level


I'm trying to follow the instructions on Creating an IQueryable LINQ Provider, but when I implement the classes which inherit from ExpressionVisitor as instructed I am told that ExpressionVisitor is inaccessible due to its protection level. Am I missing something incredibly basic?


Solution

  • The class is sealed, stupidly enough. Use the ExpressionVisitor at the end of this post instead. I can definitely recommend that walk-through, btw, it's really comprehensive and helpful in every way.

    Good luck!