I have these attributes for this class, and I am wondering how to access them from within the class. ServedClassName is a custom attribute, and that is the one I am actually trying to access.
[Guid("24889af6-e174-460b-ab52-7fb5a925926e")]
[ServedClassName("ASCOM ProxyClient Telescope")]
[ProgId("ASCOM.DeviceProxyClient.Telescope")]
[ClassInterface(ClassInterfaceType.None)]
public class Telescope : ReferenceCountedObjectBase, ITelescopeV3
To access the ProgID, I use this: Marshal.GenerateProgIdForType(this.GetType());
TypeDescriptor.GetAttributes: msdn.microsoft.com/en-us/library/6w3a7b50%28v=vs.100%29.aspxType.GetCustomAttributes: msdn.microsoft.com/en-us/library/…