2
public partial class FeaturesLogicFacade
{
    private WorldPassportLogic m_WorldPassportLogic;
    private LikedByApp m_LikedByApp;

    private FeaturesLogicFacade()
    {
        m_WorldPassportLogic = new WorldPassportLogic();
        m_LikedByApp = new LikedByApp();
    }

    static readonly FeaturesLogicFacade MyFituresLogicFacade = new FeaturesLogicFacade();

    public static FeaturesLogicFacade FituresLogicFacade
    {
        get { return MyFituresLogicFacade; }
    }

public Dictionary<string, FriendsWithLike> LikedByOperation(FeaturesLogicEnum.eLikedByAppTypes i_eLikedByAppTypes, User i_LoggedInUser) 

public void SubSystemOperation(FeaturesLogicEnum.eFeatures i_FeatureType)

class FeaturesLogicEnum
{
    public enum eFeatures
    {
        NewsFeed,
        Events,
        Massages,
        Checkins,
        Photos,           
        Friends
    };

    public enum eLikedByAppTypes
    {
        SetPicturesLikedByDictionary,
        SetPostsLikedByDictionary,
        SetStatusesLikedByDictionary
    };
    }
}

错误 2 可访问性不一致:参数类型“FaceBookApplication.FeaturesLogicEnum.eFeatures”的可访问性低于方法“FaceBookApplication.FeaturesLogicFacade.SubSystemOperation(FaceBookApplication.FeaturesLogicEnum.eFeatures)”C:\Users\aviram\Desktop\ex02\C13 Ex01 MinhDangPhamNguyet 32​​6840139 AviramShiri 3013 \Infrastructure\FeaturesLogicFacade.cs 55 21 FaceBookApplication

4

1 回答 1

4

FeaturesLogicEnum这样声明:

class FeaturesLogicEnum

目前没有特定的访问修饰符。而默认的访问修饰符是internal, not public。像这样声明类public应该可以解决您的问题。

public class FeaturesLogicEnum
于 2013-08-14T08:20:08.787 回答