Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Feedback Module...  VB to C# Translation
Previous Previous
 
Next Next
New Post 6/20/2007 10:41 AM
User is offline Mark Peterson
6 posts
10th Ranked


VB to C# Translation 

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/

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Feedback Module...  VB to C# Translation
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net
DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP