.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Do DictionaryEntry and DBDictionayEntry have the same structure?

1 REPLY 1
Reply
Message 1 of 2
fieldguy
351 Views, 1 Reply

Do DictionaryEntry and DBDictionayEntry have the same structure?

Are these types identical?

1 REPLY 1
Message 2 of 2
_gile
in reply to: fieldguy

Nope.

 

They are two different Structures from two different namespaces (System.Collection and Autodesk.AutoCAD.DatabaseServices).

DictionaryEntry keys and values are both object type, a DBDictionaryEntry key have to be a string and its value an ObjectId.

 

But there're explicit cast operators in the DBDictionaryEntry struct definition:

        public static explicit operator DictionaryEntry(DBDictionaryEntry entry);
        public static explicit operator DBDictionaryEntry(DictionaryEntry entry);


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost