idx blog
programmer's blog
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment