ComDefaultInterfaceAttribute.cs 497 B

12345678910111213141516171819202122232425
  1. //
  2. // System.Runtime.InteropServices.ComDefaultInterfaceAttribute
  3. //
  4. // Author:
  5. // Kazuki Oikawa ([email protected])
  6. //
  7. using System;
  8. namespace System.Runtime.InteropServices
  9. {
  10. [AttributeUsage (AttributeTargets.Class, Inherited = false)]
  11. [ComVisible (true)]
  12. public sealed class ComDefaultInterfaceAttribute : Attribute
  13. {
  14. Type _type;
  15. public ComDefaultInterfaceAttribute (Type defaultInterface)
  16. {
  17. _type = defaultInterface;
  18. }
  19. public Type Value { get { return _type; }}
  20. }
  21. }