Exemple #1
0
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[] {
         new StateVariable
         {
             Name = "ResultsCollection",
             Value = ActivityHelper.GetSerializedStateValueFromCollection(ResultsCollection),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "FieldsToSearch",
             Value = FieldsToSearch,
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "RequireAllTrue",
             Value = RequireAllTrue.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "RequireAllFieldsToMatch",
             Value = RequireAllFieldsToMatch.ToString(),
             Type = StateVariable.StateType.Input
         },
         new StateVariable
         {
             Name = "Result",
             Value = Result,
             Type = StateVariable.StateType.Output
         }
     });
 }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (FieldsToSearch != null ? FieldsToSearch.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StartIndex != null ? StartIndex.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MatchCase.GetHashCode();
         hashCode = (hashCode * 397) ^ RequireAllTrue.GetHashCode();
         hashCode = (hashCode * 397) ^ RequireAllFieldsToMatch.GetHashCode();
         hashCode = (hashCode * 397) ^ (ResultsCollection != null ? ResultsCollection.GetHashCode() : 0);
         return(hashCode);
     }
 }