110,538
社区成员
发帖
与我相关
我的任务
分享
[System.Runtime.InteropServices.Guid("ok")]
class My
{
}
namespace Myself
{
[AttributeUsage(AttributeTargets.Delegate | AttributeTargets.Interface | AttributeTargets.Enum | AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Assembly, Inherited = false), ComVisible(true)]
public sealed class GuidAttribute : Attribute
{
// Fields
internal string _val;
// Methods
public GuidAttribute(string guid)
{
this._val = guid;
}
// Properties
public string Value
{
get
{
return this._val;
}
}
}
}
[Myself.Guid("OK")]
class You
{
}
[ComVisible(true)]
[Guid("00000000-0000-0000-C000-000000000046")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface Interface1
{
int hello();
}