How to inspect IFaceMap of a type using SOS debugging extension in .NET -


is possible output ifacemap of type using sos debugging extension? dumpmt command gives number of interfaces type implements doesn't give command output ifacemap entries themselves

 !dumpmt -md 007938ec   eeclass:         00791310   module:          00792e94   name:            debugtest.customer   mdtoken:         02000004  basesize:        0x10   componentsize:   0x0   slots in vtable: 10   number of ifaces in ifacemap: 1 

!dumpheap doesn't output interfaces.

i never came across such functionality in sos or sosex. closest commands saw netext (codeplex). netext open source, if internals, read source code see how finds out interface information.

one command !windex -implement <interfacename>. however, not list interfaces of type, rather opposite: types implement interface. sounds potentially interesting case.

the other !wclass <methodtable> output looks similar .net decompiled code. on class definition level, can see implemented interfaces (excerpt netext documentation):

0:00> !wclass 00000001045f0c68 ... namespace system.web.configuration {   internal class httpconfigurationsystem: system.configuration.internal.iinternalconfigsystem  { ... 

Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -