/// <summary> /// Initializes a new instance of the <see cref="ReportingDescriptorRelationship" /> class from the specified instance. /// </summary> /// <param name="other"> /// The instance from which the new instance is to be initialized. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="other" /> is null. /// </exception> public ReportingDescriptorRelationship(ReportingDescriptorRelationship other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } Init(other.Target, other.Kinds, other.Description, other.Properties); }
// TODO: https://github.com/Microsoft/sarif-sdk/issues/1425 // SarifValidatorTests improvement: add generic logic for populating primitive lists. public override ReportingDescriptorRelationship VisitReportingDescriptorRelationship(ReportingDescriptorRelationship node) { node.Kinds[0] = "relevant"; return(base.VisitReportingDescriptorRelationship(node)); }
public bool ValueEquals(ReportingDescriptorRelationship other) => ValueComparer.Equals(this, other);