C# Class Microsoft.CodeAnalysis.Sarif.Rule

Inheritance: PropertyBagHolder, IRule, ISarifNode
Show file Open project: Microsoft/sarif-sdk Class Usage Examples

Private Properties

Property Type Description
DeepCloneCore ISarifNode
ISarifNode ISarifNode
Init void

Public Methods

Method Description
DeepClone ( ) : Rule

Creates a deep copy of this instance.

Rule ( ) : System

Initializes a new instance of the Rule class.

Rule ( Rule other ) : System

Initializes a new instance of the Rule class from the specified instance.

Rule ( string id, string name, string shortDescription, string fullDescription, string>.IDictionary messageFormats, RuleConfiguration configuration, ResultLevel defaultLevel, Uri helpUri, SerializedPropertyInfo>.IDictionary properties ) : System

Initializes a new instance of the Rule class from the supplied values.

ValueEquals ( Rule other ) : bool
ValueGetHashCode ( ) : int

Private Methods

Method Description
DeepCloneCore ( ) : ISarifNode
ISarifNode ( ) : ISarifNode
Init ( string id, string name, string shortDescription, string fullDescription, string>.IDictionary messageFormats, RuleConfiguration configuration, ResultLevel defaultLevel, Uri helpUri, SerializedPropertyInfo>.IDictionary properties ) : void

Method Details

DeepClone() public method

Creates a deep copy of this instance.
public DeepClone ( ) : Rule
return Rule

Rule() public method

Initializes a new instance of the Rule class.
public Rule ( ) : System
return System

Rule() public method

Initializes a new instance of the Rule class from the specified instance.
/// Thrown if is null. ///
public Rule ( Rule other ) : System
other Rule /// The instance from which the new instance is to be initialized. ///
return System

Rule() public method

Initializes a new instance of the Rule class from the supplied values.
public Rule ( string id, string name, string shortDescription, string fullDescription, string>.IDictionary messageFormats, RuleConfiguration configuration, ResultLevel defaultLevel, Uri helpUri, SerializedPropertyInfo>.IDictionary properties ) : System
id string /// An initialization value for the property. ///
name string /// An initialization value for the property. ///
shortDescription string /// An initialization value for the property. ///
fullDescription string /// An initialization value for the property. ///
messageFormats string>.IDictionary /// An initialization value for the property. ///
configuration RuleConfiguration /// An initialization value for the property. ///
defaultLevel ResultLevel /// An initialization value for the property. ///
helpUri System.Uri /// An initialization value for the property. ///
properties SerializedPropertyInfo>.IDictionary /// An initialization value for the property. ///
return System

ValueEquals() public method

public ValueEquals ( Rule other ) : bool
other Rule
return bool

ValueGetHashCode() public method

public ValueGetHashCode ( ) : int
return int