Convert a C# Sealed class to VB Class...

Posted on 2006-05-09
Last Modified: 2012-06-27
public sealed class SomeRoleProvider: RoleProvider

I'm trying to figure out how to convert above class C# statement to a VB statement.

Anyone have any ideas?

Question by:SLCTech
    LVL 52

    Expert Comment

    by:Carl Tawn
    I think it should be:

        Public NonInheritable Class SomeRoleProvider
            Inherits RoleProvider

        End Class

    Author Comment

    I tried that one... and got "End of statement expected" error.

    Changed it to

    Public NotOverridable Class SLCRoleProvider
        Inherits MembershipProvider

    End Class

    Do you think this would make more sense or be simular to sealed or do you have any other suggestions?

    LVL 52

    Accepted Solution

    Having just tried it, it should be:

        Public NotInheritable Class SomeRoleProvider
            Inherits RoleProvider

        End Class

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now