Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation Programming
  • Product Communities
  • Developers and Programming
  • MicroStation Programming
  • Cancel
MicroStation Programming
MicroStation Programming - Wiki Bentley Namespace Naming Conventions
    • Sign In
    • MicroStation Programming - Wiki
    • -MicroStation CONNECT Edition
      • +MicroStation SDK
      • -MicroStation MDL
        • MicroStation CONNECT SDK - Introduction
        • +MDL FAQ
        • -MDL Topics
          • -CONNECT APIs
            • Bentley Namespace Naming Conventions
            • Bentley.GeometryNET
          • MDL Constraints
          • +MDL Make Files
          • +MDL Tasks
          • +MDL Transforms
      • +MicroStation VBA
      • +Training
      • +Code Examples and Utilities
      • +Code Snippets
    • +MicroStation V8

     
     Questions about this article, topic, or product? Click here. 

    Bentley Namespace Naming Conventions

    Bentley Namespace Alias Guidelines (ensure consistency across code and namespace naming conventions)

     

    When commonly named object name/value types encounter name collisions (e.g. Point, Line, Range, etc. defined in multiple libraries) you can either:

     

    • Fully qualify the (new) item instance referring to the object instance assigned name to ensure no ambiguity in name resolution, OR
    • Create useful and consistent using directive namespace alias' within your code, like:

     

    Platform

    BECO        Bentley.ECObjects

    ECOI        Bentley.ECObjects.Instance

    ECOS        Bentley.ECObjects.Schema

    BECP        Bentley.EC.Persistence

    BECN        Bentley.ECN

    BDGP        Bentley.DgnPlatform

    BDGPN        Bentley.DgnPlatformNET

    BDEC        Bentley.DgnPlatformNET.DgnEC

    BE        BDGPN.Elements

    BG        Bentley.GeometryNET

    BGNC        Bentley.GeometryNET.Common

    BMSP        Bentley.MstnPlatform

    BMSPN        Bentley.MstnPlatformNET

    BU        Bentley.ECObjects.Units

    .NET

    SCG        System.Collections.Generic

    • BentleyNamespaces
    • Share
    • History
    • More
    • Cancel
    • Robert Hook Created by Bentley Colleague Robert Hook
    • When: Mon, Nov 16 2020 2:23 PM
    • Robert Hook Last revision by Bentley Colleague Robert Hook
    • When: Mon, Nov 16 2020 2:23 PM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies