Visual Studio templates provided by the ArcGIS SDK offer a "ArcGIS Class" which is a simple C# class that has the attributes Guid, ClassInterface, and ProgId before the class declaration.
While adding a new class to an ArcGIS extension project, when should I use an ArcGIS class and when should I use a regular C# class?

1 Answer 1


These attributes are applied to types that are exposed through COM, so any type that the COM client uses will require them. Other classes used internally by your extension do not. See the MSDN documentation for the System.Runtime.InteropServices namespace for specific information regarding each attribute.

  • +1 good answer. Not sure about the "internally" part though. You can have, for example, an IExtension with public members that return non-"ArcGIS classes" and access those members from a different assembly. This is especially useful for extensions that expose generic collections. Commented Aug 13, 2010 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.