/// Check if two objects are equal
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to BooleanObstacleInformation return false.
            BoolObstacleInformation info = obj as BoolObstacleInformation;

            if ((System.Object)info == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(this.Equals(info));
        }
 /// Check if two objects of type BoolObstacleInformation are equal
 public bool Equals(BoolObstacleInformation info)
 {
     // If parameter is null return false, otherwise
     // Return true if the fields match:
     return((info != null) && (info.ID == ID && info.state == state));
 }