예제 #1
0
 public bool Equals(HyperMediaLinks other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (Count != other.Count)
     {
         return(false);
     }
     for (var i = 0; i < Count; i++)
     {
         if (!this[i].Equals(other[i]))
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
0
 protected HalResource()
 {
     Links = new HyperMediaLinks();
 }