I’m using the Instant C# application to translate the following method from Visual Basic to C#. The code is from the Public Methods region of the FeedbackController class. The error I am getting is explained below. Any assistance would be appreciated.
Thanks,
Mark
Original VB Code:
Public Function GetFeedbackList(ByVal SingleRowOperation As Boolean, ByVal PortalID As Integer, ByVal ListID As Integer, ByVal ListType As FeedbackList.Type, ByVal ActiveOnly As Boolean) As ArrayList
Return DotNetNuke.Common.Utilities.CBO.FillCollection(DataProvider.Instance().GetFeedbackList(SingleRowOperation, PortalID, ListID, ListType, ActiveOnly), GetType(FeedbackList))
End Function
C# Translation:
public ArrayList GetFeedbackList(bool SingleRowOperation, int PortalID, int ListID, FeedbackList.Type ListType, bool ActiveOnly)
{
return DotNetNuke.Common.Utilities.CBO.FillCollection(DataProvider.Instance().GetFeedbackList(SingleRowOperation, PortalID, ListID, ListType, ActiveOnly), typeof(FeedbackList));
}
Error Message:
Error 1 Inconsistent accessibility: parameter type ‘YourCompany.Modules.CSFeedback.FeedbackList.Type’ is less accessible than method ‘YourCompany.Modules.CSFeedback.CSFeedbackController.GetFeedbackList(bool, int, int, YourCompany.Modules.CSFeedback.FeedbackList.Type, bool)’ c:\inetpub\wwwroot\dnn1\App_Code\CSFeedback\CSFeedbackController.cs 105 26 http://localhost/dnn1/