开发者

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

开发者 https://www.devze.com 2022-12-26 15:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号