示例#1
0
 public override bool Equals(object obj)
 {
     if (obj is DNComponent)
     {
         DNComponent dnObj = (DNComponent)obj;
         return(dnObj.WholeComponent.Equals(this.WholeComponent, StringComparison.CurrentCultureIgnoreCase));
     }
     return(base.Equals(obj));
 }
示例#2
0
 public bool Contains(DNComponent dnComponent)
 {
     return(components.Contains(dnComponent));
 }