Thursday, May 9, 2013

How to query generic interface

Suppose you have an object, and would like to query interface from it, but interface is generic type T: IInterface. You could query an interface using TypeInfo:

  Obj.QueryInterface(GetTypeData(TypeInfo(T)).Guid, Result);

No comments: