public bool IsBorder() { if (region == null) { return(false); } if (adjacent.FindAll((t) => t.region != this.region).Count() > 0) { return(true); } return(adjacent.Count() != 4); }
public bool IsBorder() { if (region == null) { return(false); } if (adjacent.FindAll((t) => t.region != this.region).Count() > 0) { return(true); } return(adjacent.Count() != 4); }