public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (FieldsToSearch != null ? FieldsToSearch.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Find != null ? Find.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ReplaceWith != null ? ReplaceWith.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CaseMatch.GetHashCode(); hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0); return(hashCode); } }
public override IEnumerable <StateVariable> GetState() { return(new[] { new StateVariable { Name = "FieldsToSearch", Type = StateVariable.StateType.Input, Value = FieldsToSearch }, new StateVariable { Name = "Find", Type = StateVariable.StateType.Input, Value = Find }, new StateVariable { Name = "ReplaceWith", Type = StateVariable.StateType.Input, Value = ReplaceWith }, new StateVariable { Name = "CaseMatch", Type = StateVariable.StateType.Input, Value = CaseMatch.ToString() }, new StateVariable { Name = "Result", Type = StateVariable.StateType.Output, Value = Result } }); }