Files
Dec2017-Script-Dump/mscorlib/System/Runtime/InteropServices/PrimaryInteropAssemblyAttribute.cs
T
2026-06-04 11:42:34 +02:00

52 lines
2.0 KiB
C#

using System;
namespace System.Runtime.InteropServices
{
/// <summary>Indicates that the attributed assembly is a primary interop assembly.</summary>
// Token: 0x02000334 RID: 820
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)]
public sealed class PrimaryInteropAssemblyAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute" /> class with the major and minor version numbers of the type library for which this assembly is the primary interop assembly.</summary>
/// <param name="major">The major version of the type library for which this assembly is the primary interop assembly. </param>
/// <param name="minor">The minor version of the type library for which this assembly is the primary interop assembly. </param>
// Token: 0x060022F4 RID: 8948 RVA: 0x0007A5C0 File Offset: 0x000787C0
public PrimaryInteropAssemblyAttribute(int major, int minor)
{
this.major = major;
this.minor = minor;
}
/// <summary>Gets the major version number of the type library for which this assembly is the primary interop assembly.</summary>
/// <returns>The major version number of the type library for which this assembly is the primary interop assembly.</returns>
// Token: 0x17000655 RID: 1621
// (get) Token: 0x060022F5 RID: 8949 RVA: 0x0007A5D8 File Offset: 0x000787D8
public int MajorVersion
{
get
{
return this.major;
}
}
/// <summary>Gets the minor version number of the type library for which this assembly is the primary interop assembly.</summary>
/// <returns>The minor version number of the type library for which this assembly is the primary interop assembly.</returns>
// Token: 0x17000656 RID: 1622
// (get) Token: 0x060022F6 RID: 8950 RVA: 0x0007A5E0 File Offset: 0x000787E0
public int MinorVersion
{
get
{
return this.minor;
}
}
// Token: 0x04000D7A RID: 3450
private int major;
// Token: 0x04000D7B RID: 3451
private int minor;
}
}