/// <summary> /// Computes if this object equals the other one, i.e. if they have the same layer and net identifiers. /// </summary> /// <param name="other">Other object to be compared against.</param> /// <returns>True if the objects are equal.</returns> public bool Equals(LayerNet other) { if (object.ReferenceEquals(other, null)) { return(false); } if (object.ReferenceEquals(this, other)) { return(true); } return((this.LayerId == other.LayerId) && (this.NetId == other.NetId)); }
public void UpdateWeight() { LayerNet.ToList().ForEach(layer => { layer.UpdateNeure(); }); }