Rahul,
No, there isn't, but you can easily write a simple function which will
get the ID from the interface. The type itself should be decorated with the
Guid attribute.
So, once you get the Type instance for the interface, you can call
GetCustomAttributes, passing the type of the GuidAttribute, and then once
you get the return value, you can get the Value property of the attribute to
get the string version of the Guid (which you can then convert to a Guid
instance).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Rahul Patel" <Rahul
Pa***@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
Is there an equivalent function of __uuidof(IMyIface) in COM interop
support
library that would let me extract the GUID of an Interface exposed via COM
interop in C# ??