![]() These conflicts with existing components are sometimes called name collisions.įor example, if you create a new class named ListBox, you can use it inside your project without qualification. NET Framework namespaces address a problem sometimes called namespace pollution, in which the developer of a class library is hampered by the use of similar names in another library. The following code fragment shows how to declare a variable using the fully qualified name for this class: Dim LBox As NET Framework defines the ListBox class in the namespace. Namespaces prevent ambiguity and simplify references when using large groups of objects such as class libraries.įor example, the. Assemblies can contain multiple namespaces, which can in turn contain other namespaces. Namespaces organize the objects defined in an assembly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |