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 inaccessi开发者_运维问答ble due to its protection level. Am I missing something incredibly basic?
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!
In .NET 4.0, the Microsoft-provided implementation of ExpressionVisitor
(built into the BCL) is no longer sealed.
精彩评论