scripts
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
|
||||
namespace System.Diagnostics.CodeAnalysis
|
||||
{
|
||||
/// <summary>Suppresses reporting of a specific static analysis tool rule violation, allowing multiple suppressions on a single code artifact.</summary>
|
||||
// Token: 0x0200014A RID: 330
|
||||
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
|
||||
[Conditional("CODE_ANALYSIS")]
|
||||
public sealed class SuppressMessageAttribute : Attribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.CodeAnalysis.SuppressMessageAttribute" /> class, specifying the category of the static analysis tool and the identifier for an analysis rule. </summary>
|
||||
/// <param name="category">The category for the attribute.</param>
|
||||
/// <param name="checkId">The identifier of the analysis tool rule the attribute applies to.</param>
|
||||
// Token: 0x060010CA RID: 4298 RVA: 0x00044E58 File Offset: 0x00043058
|
||||
public SuppressMessageAttribute(string category, string checkId)
|
||||
{
|
||||
this.category = category;
|
||||
this.checkId = checkId;
|
||||
}
|
||||
|
||||
/// <summary>Gets the category identifying the classification of the attribute.</summary>
|
||||
/// <returns>The category identifying the attribute.</returns>
|
||||
// Token: 0x170002CA RID: 714
|
||||
// (get) Token: 0x060010CB RID: 4299 RVA: 0x00044E70 File Offset: 0x00043070
|
||||
public string Category
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.category;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the identifier of the static analysis tool rule to be suppressed.</summary>
|
||||
/// <returns>The identifier of the static analysis tool rule to be suppressed.</returns>
|
||||
// Token: 0x170002CB RID: 715
|
||||
// (get) Token: 0x060010CC RID: 4300 RVA: 0x00044E78 File Offset: 0x00043078
|
||||
public string CheckId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.checkId;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the justification for suppressing the code analysis message.</summary>
|
||||
/// <returns>The justification for suppressing the message.</returns>
|
||||
// Token: 0x170002CC RID: 716
|
||||
// (get) Token: 0x060010CD RID: 4301 RVA: 0x00044E80 File Offset: 0x00043080
|
||||
// (set) Token: 0x060010CE RID: 4302 RVA: 0x00044E88 File Offset: 0x00043088
|
||||
public string Justification
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.justification;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.justification = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets an optional argument expanding on exclusion criteria.</summary>
|
||||
/// <returns>A string containing the expanded exclusion criteria.</returns>
|
||||
// Token: 0x170002CD RID: 717
|
||||
// (get) Token: 0x060010CF RID: 4303 RVA: 0x00044E94 File Offset: 0x00043094
|
||||
// (set) Token: 0x060010D0 RID: 4304 RVA: 0x00044E9C File Offset: 0x0004309C
|
||||
public string MessageId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.messageId;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.messageId = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the scope of the code that is relevant for the attribute.</summary>
|
||||
/// <returns>The scope of the code that is relevant for the attribute.</returns>
|
||||
// Token: 0x170002CE RID: 718
|
||||
// (get) Token: 0x060010D1 RID: 4305 RVA: 0x00044EA8 File Offset: 0x000430A8
|
||||
// (set) Token: 0x060010D2 RID: 4306 RVA: 0x00044EB0 File Offset: 0x000430B0
|
||||
public string Scope
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.scope;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.scope = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a fully qualified path that represents the target of the attribute.</summary>
|
||||
/// <returns>A fully qualified path that represents the target of the attribute.</returns>
|
||||
// Token: 0x170002CF RID: 719
|
||||
// (get) Token: 0x060010D3 RID: 4307 RVA: 0x00044EBC File Offset: 0x000430BC
|
||||
// (set) Token: 0x060010D4 RID: 4308 RVA: 0x00044EC4 File Offset: 0x000430C4
|
||||
public string Target
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.target;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.target = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000419 RID: 1049
|
||||
private string category;
|
||||
|
||||
// Token: 0x0400041A RID: 1050
|
||||
private string checkId;
|
||||
|
||||
// Token: 0x0400041B RID: 1051
|
||||
private string justification;
|
||||
|
||||
// Token: 0x0400041C RID: 1052
|
||||
private string messageId;
|
||||
|
||||
// Token: 0x0400041D RID: 1053
|
||||
private string scope;
|
||||
|
||||
// Token: 0x0400041E RID: 1054
|
||||
private string target;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user