Home
Options

Inconsistent accessibility error when passing UserQuery to methods in a loaded script

Another [problem in my quest to use a custom datacontext. I have a script using a database connection based on a custom TypedDataContext. Queries in the script work fine but I am also using #load to load a second script containing extension methods. The loaded script uses the same connection as the one loading it. The extension methods have a UserQuery context parameter and I use this to pass the UserQuery when calling these methods. But I'm getting the error "CS0051 Inconsistent accessibility: parameter type 'UserQuery' is less accessible than method 'FavoritingExtensions.Favorite(Flickr, string, UserQuery)". This does not happen if I allow LINQPad to generate the TypedDataContext for a connection and use that. How can I correct this error?

Comments

Sign In or Register to comment.