/// <summary> /// Returns true if DisasterGuidelinesContent instances are equal /// </summary> /// <param name="other">Instance of DisasterGuidelinesContent to be compared</param> /// <returns>Boolean</returns> public bool Equals(DisasterGuidelinesContent other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Before == other.Before || Before != null && Before.Equals(other.Before) ) && ( Now == other.Now || Now != null && Now.Equals(other.Now) ) && ( After == other.After || After != null && After.Equals(other.After) )); }
public bool StepCheck() { var result = true; if (Now.AliveCells.Count == 0) { result = false; } if (Now.Equals(Previous)) { result = false; } return(result); }