コード例 #1
0
ファイル: LayerNet.cs プロジェクト: fjovine/DotNetlist
        /// <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));
        }
コード例 #2
0
 public void UpdateWeight()
 {
     LayerNet.ToList().ForEach(layer => { layer.UpdateNeure(); });
 }