Exemple #1
0
 public bool Equals(ResourceStack that)
 {
     if (Object.ReferenceEquals(that, null))
     {
         return(false);
     }
     if (Object.ReferenceEquals(this, that))
     {
         return(true);
     }
     if (this.GetType() != that.GetType())
     {
         return(false);
     }
     return((Type.Equals(that.Type)) && (Amount.Equals(that.Amount)));
 }