<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Importing Custom namespace in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108703#M8070</link>
    <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;I expressed that badly.&lt;BR /&gt;I want to be sure that several assemblies will be able to share stand alone libraries.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 07:59:32 GMT</pubDate>
    <dc:creator>kerry_w_brown</dc:creator>
    <dc:date>2023-07-18T07:59:32Z</dc:date>
    <item>
      <title>Importing Custom namespace</title>
      <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108306#M8067</link>
      <description>&lt;P&gt;I'd like to know the logic AutoCAD used to handle loading Custom Assemblies from a namespace using directive.&lt;BR /&gt;&lt;BR /&gt;Are all types defined in a namespace imported ?&lt;BR /&gt;. . . .&amp;nbsp; or only the types required by that particular assembly ?&lt;BR /&gt;&lt;BR /&gt;Does 'AutoCAD' check if a namespace has been previously loaded, and only load if not previously loaded. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, can we assume that several custom assemblies can/do use the same loaded 'namespace' for the types they have in common. ??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 03:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108306#M8067</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-18T03:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Custom namespace</title>
      <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108425#M8068</link>
      <description>&lt;P&gt;Hi Kerry,&lt;/P&gt;
&lt;P&gt;This is not specific to AutoCAD, this is the way Visual Studio works.&lt;/P&gt;
&lt;P&gt;From Microsoft documentation:&lt;/P&gt;
&lt;P&gt;" the using directive imports all the types from a single namespace"&lt;/P&gt;
&lt;P&gt;except with the 'static' modifier:&lt;/P&gt;
&lt;P&gt;"The static modifier imports the static members and nested types from a single type rather than importing all the types in a namespace."&lt;/P&gt;
&lt;P&gt;I do not think the word "load" is appropriated for namespaces. Namespaces are related to the type names, not their implementation.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:05:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108425#M8068</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-18T05:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Custom namespace</title>
      <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108443#M8069</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/529262"&gt;@kerry_w_brown&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;can we assume that several custom assemblies can/do use the same loaded 'namespace' for the types they have in common. ??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not sure to fully understand.&lt;/P&gt;
&lt;P&gt;If several assemblies can use the same namespace (Autodesk.AutoCAD.Runtime is used by the accoremgd, acdbmgd and acmgd assemblies), there can't be the same type name for different types in different assemblies.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 05:24:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108443#M8069</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-07-18T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Custom namespace</title>
      <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108703#M8070</link>
      <description>&lt;P&gt;Hi Gilles,&lt;/P&gt;&lt;P&gt;I expressed that badly.&lt;BR /&gt;I want to be sure that several assemblies will be able to share stand alone libraries.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 07:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108703#M8070</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-07-18T07:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Custom namespace</title>
      <link>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108749#M8071</link>
      <description>&lt;P&gt;Not sure if this helps, but&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reflect on Autodesk.AutoCAD.Runtime.ExtensionLoader, OnAssemblyResolve, OnAssemblyLoad, ProcessAssembly&lt;/P&gt;&lt;P&gt;There’s a hashmap of loaded assemblies (and their references) and of classes that have been declared with one of AutoCAD’s custom attributes.&lt;/P&gt;&lt;P&gt;Guessing that AutoCAD knows what assemblies have been loaded, directly, or by reference, and if a type is loaded that has an attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything else is probably done by the framework.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 08:27:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/importing-custom-namespace/m-p/12108749#M8071</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2023-07-18T08:27:51Z</dc:date>
    </item>
  </channel>
</rss>

