Brunet.Symphony.AHHeader.Equals C# (CSharp) Method

Equals() public method

public Equals ( object o ) : bool
o object
return bool
  public override bool Equals(object o) {
    AHHeader o_head = o as AHHeader;
    if( o_head != null ) {
      return (this.Hops == o_head.Hops) &&
             (this.Ttl == o_head.Ttl) &&
             (this.Opts == o_head.Opts) &&
             (this.Destination.Equals(o_head.Destination)) &&
             (this.Source.Equals(o_head.Source));
    }
    else {
      return false;
    }
  }