.NET

.NET

Reply
Valued Mentor
388 Posts
30 Kudos
Registered: ‎03-31-2005
Post 1 of 2

Do DictionaryEntry and DBDictionayEntry have the same structure?

154 Views, 1 Replies
08-02-2012 08:48 AM

Are these types identical?

*Expert Elite*
2,140 Posts
253 Kudos
Registered: ‎04-29-2006
Post 2 of 2

Re : Do DictionaryEntry and DBDictionayEntry have the same structure?

08-02-2012 10:19 AM 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post