/Community

A Support Community for SubMain Products
in Search
Welcome to SubMain Community Sign in | Join | Help

Multople class definitions in a single file

Last post 09-01-2005, 7:13 AM by Vlad Ivanov. 2 replies.
Sort Posts: Previous Next
  •  08-31-2005, 1:19 PM 91

    Multople class definitions in a single file

    In VB.NET it is entirely legal to declare multiple classes within a single .vb file.

    Begin example file Test.vb
    Class Bar1
    End Class
    Class Bar2
    End Class
    End example file Test.vb

    However it appears that "Rename" operation raises exception if you try to rename one of the classes. W

    What is also sort of annoying - is that if i chose "Don't send feedback" - i got prompted multiple times and had to repeat "Don't send feedback" at least a dozen times before it stopped prompting.

    P.S: I haven't tested the following scenarion and don't know how CIO will behave, but i thought i'd mention it for you to consider: you can also have internal classes within a class.

    Example:

    Class Foo
    Class Bar1
    End Class
    Class Bar2
    End Class
    End Class
  •  09-01-2005, 12:20 AM 92 in reply to 91

    Multople class definitions in a single file

    Vlad,

    We are sorry, but we can not reproduce this error as you describe it. Can you please send us solution with test class itself or send error through our Error Reporting system?
  •  09-01-2005, 7:13 AM 94 in reply to 92

    Multople class definitions in a single file

    Igor,

    I replied to the email sent by you, as well as forwarded the reports you requested. See more information in the email.

    Thanks!

    Vlad.
View as RSS news feed in XML