/// <summary>
        /// Returns true if ModelFlowChartEdge instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartEdge to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartEdge other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     FixedConfig == other.FixedConfig ||
                     FixedConfig != null &&
                     FixedConfig.Equals(other.FixedConfig)
                 ) &&
                 (
                     LinkedNodes == other.LinkedNodes ||
                     LinkedNodes != null &&
                     LinkedNodes.SequenceEqual(other.LinkedNodes)
                 ) &&
                 (
                     Scripts == other.Scripts ||
                     Scripts != null &&
                     Scripts.Equals(other.Scripts)
                 ));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ModelFlowChartNodeComponent instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartNodeComponent to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartNodeComponent other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     LinkedNodeId == other.LinkedNodeId ||
                     LinkedNodeId != null &&
                     LinkedNodeId.Equals(other.LinkedNodeId)
                 ) &&
                 (
                     FixedConfig == other.FixedConfig ||
                     FixedConfig != null &&
                     FixedConfig.Equals(other.FixedConfig)
                 ) &&
                 (
                     ComponentSubGraph == other.ComponentSubGraph ||
                     ComponentSubGraph != null &&
                     ComponentSubGraph.Equals(other.ComponentSubGraph)
                 ));
        }
        /// <summary>
        /// Returns true if ModelFlowChartExtension instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartExtension to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartExtension other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     FixedConfig == other.FixedConfig ||
                     FixedConfig != null &&
                     FixedConfig.Equals(other.FixedConfig)
                 ) &&
                 (
                     InstallScript == other.InstallScript ||
                     InstallScript != null &&
                     InstallScript.Equals(other.InstallScript)
                 ) &&
                 (
                     StartScript == other.StartScript ||
                     StartScript != null &&
                     StartScript.Equals(other.StartScript)
                 ));
        }