Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SarifLogVersionOne" /> 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 SarifLogVersionOne(SarifLogVersionOne other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.SchemaUri, other.Version, other.Runs);
        }
        public virtual SarifLogVersionOne VisitSarifLogVersionOne(SarifLogVersionOne node)
        {
            if (node != null)
            {
                if (node.Runs != null)
                {
                    for (int index_0 = 0; index_0 < node.Runs.Count; ++index_0)
                    {
                        node.Runs[index_0] = VisitNullChecked(node.Runs[index_0]);
                    }
                }
            }

            return(node);
        }
Exemple #3
0
 public bool ValueEquals(SarifLogVersionOne other) => ValueComparer.Equals(this, other);