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

            Init(other.ToolComponentGuid, other.Location, other.SemanticVersion, other.PartialTranslation, other.GlobalMessageStrings, other.ReportingDescriptors, other.NotificationDescriptors, other.Properties);
        }
Esempio n. 2
0
        public virtual ToolComponentTranslation VisitToolComponentTranslation(ToolComponentTranslation node)
        {
            if (node != null)
            {
                node.Location = VisitNullChecked(node.Location);
                if (node.ReportingDescriptors != null)
                {
                    for (int index_0 = 0; index_0 < node.ReportingDescriptors.Count; ++index_0)
                    {
                        node.ReportingDescriptors[index_0] = VisitNullChecked(node.ReportingDescriptors[index_0]);
                    }
                }

                if (node.NotificationDescriptors != null)
                {
                    for (int index_0 = 0; index_0 < node.NotificationDescriptors.Count; ++index_0)
                    {
                        node.NotificationDescriptors[index_0] = VisitNullChecked(node.NotificationDescriptors[index_0]);
                    }
                }
            }

            return(node);
        }
Esempio n. 3
0
 public bool ValueEquals(ToolComponentTranslation other) => ValueComparer.Equals(this, other);