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

35 lines
1.6 KiB
C#

using System;
namespace System.Runtime.CompilerServices
{
/// <summary>Provides a hint to the common language runtime (CLR) indicating how likely a dependency is to be loaded. This class is used in a dependent assembly to indicate what hint should be used when the parent does not specify the <see cref="T:System.Runtime.CompilerServices.DependencyAttribute" /> attribute. This class cannot be inherited. </summary>
// Token: 0x02000298 RID: 664
[AttributeUsage(AttributeTargets.Assembly)]
[Serializable]
public sealed class DefaultDependencyAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.DefaultDependencyAttribute" /> class with the specified <see cref="T:System.Runtime.CompilerServices.LoadHint" /> binding. </summary>
/// <param name="loadHintArgument">One of the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> values that indicates the default binding preference.</param>
// Token: 0x060020EA RID: 8426 RVA: 0x00078BDC File Offset: 0x00076DDC
public DefaultDependencyAttribute(LoadHint loadHintArgument)
{
this.hint = loadHintArgument;
}
/// <summary>Gets the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> value that indicates when an assembly loads a dependency.</summary>
/// <returns>One of the <see cref="T:System.Runtime.CompilerServices.LoadHint" /> values.</returns>
// Token: 0x1700062E RID: 1582
// (get) Token: 0x060020EB RID: 8427 RVA: 0x00078BEC File Offset: 0x00076DEC
public LoadHint LoadHint
{
get
{
return this.hint;
}
}
// Token: 0x04000BC6 RID: 3014
private LoadHint hint;
}
}