/// <summary> /// The deep copy constructor /// </summary> /// <param name="source">Source instance</param> public StaticSynapseSettings(StaticSynapseSettings source) { WeightCfg = null; if (source.WeightCfg != null) { WeightCfg = source.WeightCfg.DeepClone(); } return; }
//Methods /// <summary> /// See the base. /// </summary> public override bool Equals(object obj) { if (obj == null) { return(false); } StaticSynapseSettings cmpSettings = obj as StaticSynapseSettings; if (!Equals(WeightCfg, cmpSettings.WeightCfg)) { return(false); } return(true); }
/// <summary> /// Creates the deep copy instance of this instance /// </summary> public StaticSynapseSettings DeepClone() { StaticSynapseSettings clone = new StaticSynapseSettings(this); return(clone); }