Agent.AgentType.Equals C# (CSharp) Method

Equals() public method

public Equals ( AgentType p ) : bool
p AgentType
return bool
    public bool Equals(AgentType p)
    {
      // If parameter is null return false:
      if ((object)p == null)
      {
        return false;
      }

      // Return true if the fields match:
      return this.position.Equals(p.position) &&
             this.refPosition.Equals(p.refPosition);
    }

Same methods

AgentType::Equals ( System obj ) : bool