Exemple #1
0
        protected virtual void Init(string guid, SuppressionKind kind, SuppressionStatus status, string justification, Location location, IDictionary <string, SerializedPropertyInfo> properties)
        {
            Guid          = guid;
            Kind          = kind;
            Status        = status;
            Justification = justification;
            if (location != null)
            {
                Location = new Location(location);
            }

            if (properties != null)
            {
                Properties = new Dictionary <string, SerializedPropertyInfo>(properties);
            }
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Suppression" /> class from the supplied values.
 /// </summary>
 /// <param name="guid">
 /// An initialization value for the <see cref="P:Guid" /> property.
 /// </param>
 /// <param name="kind">
 /// An initialization value for the <see cref="P:Kind" /> property.
 /// </param>
 /// <param name="status">
 /// An initialization value for the <see cref="P:Status" /> property.
 /// </param>
 /// <param name="justification">
 /// An initialization value for the <see cref="P:Justification" /> property.
 /// </param>
 /// <param name="location">
 /// An initialization value for the <see cref="P:Location" /> property.
 /// </param>
 /// <param name="properties">
 /// An initialization value for the <see cref="P:Properties" /> property.
 /// </param>
 public Suppression(string guid, SuppressionKind kind, SuppressionStatus status, string justification, Location location, IDictionary <string, SerializedPropertyInfo> properties)
 {
     Init(guid, kind, status, justification, location, properties);
 }