using System;
using System.Diagnostics;
namespace System.Runtime.Versioning
{
/// Specifies the resource consumed by the member of a class. This class cannot be inherited.
// Token: 0x0200049A RID: 1178
[Conditional("RESOURCE_ANNOTATION_WORK")]
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property, Inherited = false)]
public sealed class ResourceConsumptionAttribute : Attribute
{
/// Initializes a new instance of the class specifying the scope of the consumed resource.
/// The for the consumed resource.
// Token: 0x06002C94 RID: 11412 RVA: 0x00092AF8 File Offset: 0x00090CF8
public ResourceConsumptionAttribute(ResourceScope resourceScope)
{
this.resource = resourceScope;
this.consumption = resourceScope;
}
/// Initializes a new instance of the class specifying the scope of the consumed resource and the scope of how it is consumed.
/// The for the consumed resource.
/// The used by this member.
// Token: 0x06002C95 RID: 11413 RVA: 0x00092B10 File Offset: 0x00090D10
public ResourceConsumptionAttribute(ResourceScope resourceScope, ResourceScope consumptionScope)
{
this.resource = resourceScope;
this.consumption = consumptionScope;
}
/// Gets the consumption scope for this member.
/// A object specifying the resource scope used by this member.
// Token: 0x170008B1 RID: 2225
// (get) Token: 0x06002C96 RID: 11414 RVA: 0x00092B28 File Offset: 0x00090D28
public ResourceScope ConsumptionScope
{
get
{
return this.consumption;
}
}
/// Gets the resource scope for the consumed resource.
/// A object specifying the resource scope of the consumed member.
// Token: 0x170008B2 RID: 2226
// (get) Token: 0x06002C97 RID: 11415 RVA: 0x00092B30 File Offset: 0x00090D30
public ResourceScope ResourceScope
{
get
{
return this.resource;
}
}
// Token: 0x04001148 RID: 4424
private ResourceScope resource;
// Token: 0x04001149 RID: 4425
private ResourceScope consumption;
}
}