Esempio n. 1
0
        /// <summary>
        /// See the base.
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            InternalSynapseSettings cmpSettings = obj as InternalSynapseSettings;

            if (!Equals(S2SSynapseE2EDynamicsCfg, cmpSettings.S2SSynapseE2EDynamicsCfg) ||
                !Equals(S2SSynapseE2IDynamicsCfg, cmpSettings.S2SSynapseE2IDynamicsCfg) ||
                !Equals(S2SSynapseI2EDynamicsCfg, cmpSettings.S2SSynapseI2EDynamicsCfg) ||
                !Equals(S2SSynapseI2IDynamicsCfg, cmpSettings.S2SSynapseI2IDynamicsCfg) ||
                !Equals(A2SSynapseE2EDynamicsCfg, cmpSettings.A2SSynapseE2EDynamicsCfg) ||
                !Equals(A2SSynapseE2IDynamicsCfg, cmpSettings.A2SSynapseE2IDynamicsCfg) ||
                !Equals(A2SSynapseI2EDynamicsCfg, cmpSettings.A2SSynapseI2EDynamicsCfg) ||
                !Equals(A2SSynapseI2IDynamicsCfg, cmpSettings.A2SSynapseI2IDynamicsCfg) ||
                !Equals(S2ASynapseE2EDynamicsCfg, cmpSettings.S2ASynapseE2EDynamicsCfg) ||
                !Equals(S2ASynapseI2EDynamicsCfg, cmpSettings.S2ASynapseI2EDynamicsCfg) ||
                !Equals(S2ASynapseE2IDynamicsCfg, cmpSettings.S2ASynapseE2IDynamicsCfg) ||
                !Equals(S2ASynapseI2IDynamicsCfg, cmpSettings.S2ASynapseI2IDynamicsCfg) ||
                !Equals(A2ASynapseE2EDynamicsCfg, cmpSettings.A2ASynapseE2EDynamicsCfg) ||
                !Equals(A2ASynapseI2EDynamicsCfg, cmpSettings.A2ASynapseI2EDynamicsCfg) ||
                !Equals(A2ASynapseE2IDynamicsCfg, cmpSettings.A2ASynapseE2IDynamicsCfg) ||
                !Equals(A2ASynapseI2IDynamicsCfg, cmpSettings.A2ASynapseI2IDynamicsCfg)
                )
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public InternalSynapseSettings(InternalSynapseSettings source)
 {
     S2SSynapseE2EDynamicsCfg = source.S2SSynapseE2EDynamicsCfg?.DeepClone();
     S2SSynapseE2IDynamicsCfg = source.S2SSynapseE2IDynamicsCfg?.DeepClone();
     S2SSynapseI2EDynamicsCfg = source.S2SSynapseI2EDynamicsCfg?.DeepClone();
     S2SSynapseI2IDynamicsCfg = source.S2SSynapseI2IDynamicsCfg?.DeepClone();
     A2SSynapseE2EDynamicsCfg = source.A2SSynapseE2EDynamicsCfg?.DeepClone();
     A2SSynapseE2IDynamicsCfg = source.A2SSynapseE2IDynamicsCfg?.DeepClone();
     A2SSynapseI2EDynamicsCfg = source.A2SSynapseI2EDynamicsCfg?.DeepClone();
     A2SSynapseI2IDynamicsCfg = source.A2SSynapseI2IDynamicsCfg?.DeepClone();
     S2ASynapseE2EDynamicsCfg = source.S2ASynapseE2EDynamicsCfg?.DeepClone();
     S2ASynapseI2EDynamicsCfg = source.S2ASynapseI2EDynamicsCfg?.DeepClone();
     S2ASynapseE2IDynamicsCfg = source.S2ASynapseE2IDynamicsCfg?.DeepClone();
     S2ASynapseI2IDynamicsCfg = source.S2ASynapseI2IDynamicsCfg?.DeepClone();
     A2ASynapseE2EDynamicsCfg = source.A2ASynapseE2EDynamicsCfg?.DeepClone();
     A2ASynapseI2EDynamicsCfg = source.A2ASynapseI2EDynamicsCfg?.DeepClone();
     A2ASynapseE2IDynamicsCfg = source.A2ASynapseE2IDynamicsCfg?.DeepClone();
     A2ASynapseI2IDynamicsCfg = source.A2ASynapseI2IDynamicsCfg?.DeepClone();
     return;
 }
Esempio n. 3
0
        /// <summary>
        /// Creates the deep copy instance of this instance
        /// </summary>
        public InternalSynapseSettings DeepClone()
        {
            InternalSynapseSettings clone = new InternalSynapseSettings(this);

            return(clone);
        }