52 lines
1.9 KiB
C#
52 lines
1.9 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
/// <summary>Indicates when a dependency is to be loaded by the referring assembly. This class cannot be inherited. </summary>
|
|
// Token: 0x02000299 RID: 665
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
|
[Serializable]
|
|
public sealed class DependencyAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.DependencyAttribute" /> class with the specified <see cref="T:System.Runtime.CompilerServices.LoadHint" /> value. </summary>
|
|
/// <param name="dependentAssemblyArgument">The dependent assembly to bind to.</param>
|
|
/// <param name="loadHintArgument">One of the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> values.</param>
|
|
// Token: 0x060020EC RID: 8428 RVA: 0x00078BF4 File Offset: 0x00076DF4
|
|
public DependencyAttribute(string dependentAssemblyArgument, LoadHint loadHintArgument)
|
|
{
|
|
this.dependentAssembly = dependentAssemblyArgument;
|
|
this.hint = loadHintArgument;
|
|
}
|
|
|
|
/// <summary>Gets the value of the dependent assembly. </summary>
|
|
/// <returns>The name of the dependent assembly.</returns>
|
|
// Token: 0x1700062F RID: 1583
|
|
// (get) Token: 0x060020ED RID: 8429 RVA: 0x00078C0C File Offset: 0x00076E0C
|
|
public string DependentAssembly
|
|
{
|
|
get
|
|
{
|
|
return this.dependentAssembly;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> value that indicates when an assembly is to load a dependency. </summary>
|
|
/// <returns>One of the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> values.</returns>
|
|
// Token: 0x17000630 RID: 1584
|
|
// (get) Token: 0x060020EE RID: 8430 RVA: 0x00078C14 File Offset: 0x00076E14
|
|
public LoadHint LoadHint
|
|
{
|
|
get
|
|
{
|
|
return this.hint;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000BC7 RID: 3015
|
|
private string dependentAssembly;
|
|
|
|
// Token: 0x04000BC8 RID: 3016
|
|
private LoadHint hint;
|
|
}
|
|
}
|