2013-03-23 98 views
0

这是一个错误的显示就行了:属性由于保护级别而无法访问?

public IOAuth2ServiceProvider<IElance> ElanceServiceProvider { get; set; } 

它显示在IElance类型上该行的错误,但这里的接口:

public interface IElance : IApiBinding 
    { 
     /// <summary> 
     /// Search all jobs, list jobs associated with an employee or a freelancer, and retrieve information for a specific job. 
     /// </summary> 
     IJobOperations JobOperations { get; } 

     /// <summary> 
     /// Access all messages, users, messages, and Work View™ data associated with an Elance Workroom. 
     /// </summary> 
     IWorkRoomOperations WorkroomOperations { get; } 

     /// <summary> 
     /// View all of the information associated with an employee or a freelancer. 
     /// </summary> 
     IProfileOperations ProfileOperations { get; } 

     /// <summary> 
     /// View detailed information on freelancers, and retrieve a list of all freelancers employed by an employer. 
     /// </summary> 
     IFreelancerOperations FreelancerOperations { get; } 

     /// <summary> 
     /// List Elance groups, and retrieve lists of members and jobs belonging to a group. 
     /// </summary> 
     IGroupOperations GroupOperations { get; } 

     /// <summary> 
     /// Obtain ancillary Elance information, such as the current list of all job categories. 
     /// </summary> 
     IUtilityOperations UtilityOperations { get; } 
    } 

我不能为我的生活找出它为什么告诉我这一点。我错过了明显的东西吗?我非常感谢这个错误的任何方向。

+3

IApiBinding的可访问性状态是? – 2013-03-23 16:44:57

+0

更新与接口主体 – manojlds 2013-03-23 16:53:12

+0

更新与接口主体 – LordZardeck 2013-03-23 16:54:25

回答

0

这可能是由于IApiBinding或它的一个基本接口不是public造成的。另一种可能性是界面成员使用的类型之一不公开。

+0

我会如何发现?它在外部库中 – LordZardeck 2013-03-23 16:51:43

+0

在这种情况下,它更可能是接口成员的类型之一。他们都是公开的吗? – 2013-03-23 16:56:34

+0

它不会让我在界面中使用'public'修饰符 – LordZardeck 2013-03-23 17:00:37

相关问题