Search code examples
c#com-interop

What is the Guid attribute that appears above classes in C#?


I've picked up some C# code recently and one of the classes has a Guid attribute present above it. I don't understand what this is or what it's used for.

Can someone give me a rundown of what it is, or just point me in the direction of some articles that give more information about this?

Thanks!


Solution

  • It is the COM identifier that represents the class in question. The class is designed for COM interop.