Вопрос

Currently I'm experimenting with C#4's dynamic programming and I did not completely understand under which circumstances the keyword dynamic works. It is clear to me that it works with IDispatch, as it allows to inform the caller with type information automatically. But shouldn't it also work with IUnknown and a type lib? (In http://samgentile.com/Web/vs2010-and-net-framework-4-0/c-4-0-bcl-4-series-dynamic-primitive-type-part-1/ I found a vague hint that a Binding to IUnknown should be possible.)

So does IUnknown w/ type lib work with C#'s dynamic keyword? - If so, what do I have to do?

Это было полезно?

Решение

My current foundings are that the COM-binder only works with IDispatch and not with IUnknown at all.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top