26 lines
497 B
C#
26 lines
497 B
C#
|
//
|
||
|
// System.Runtime.InteropServices.ComDefaultInterfaceAttribute
|
||
|
//
|
||
|
// Author:
|
||
|
// Kazuki Oikawa (kazuki@panicode.com)
|
||
|
//
|
||
|
|
||
|
using System;
|
||
|
|
||
|
namespace System.Runtime.InteropServices
|
||
|
{
|
||
|
[AttributeUsage (AttributeTargets.Class, Inherited = false)]
|
||
|
[ComVisible (true)]
|
||
|
public sealed class ComDefaultInterfaceAttribute : Attribute
|
||
|
{
|
||
|
Type _type;
|
||
|
|
||
|
public ComDefaultInterfaceAttribute (Type defaultInterface)
|
||
|
{
|
||
|
_type = defaultInterface;
|
||
|
}
|
||
|
|
||
|
public Type Value { get { return _type; }}
|
||
|
}
|
||
|
}
|