Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (SelectedSource != null ? SelectedSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToPath != null ? ToPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OverwriteFile.GetHashCode();
         hashCode = (hashCode * 397) ^ (FromPath != null ? FromPath.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "SelectedSource.ResourceID",
             Type = StateVariable.StateType.Input,
             Value = SelectedSource.ResourceID.ToString()
         },
         new StateVariable
         {
             Name = "FromPath",
             Type = StateVariable.StateType.Input,
             Value = FromPath
         },
         new StateVariable
         {
             Name = "ToPath",
             Type = StateVariable.StateType.Input,
             Value = ToPath
         },
         new StateVariable
         {
             Name = "OverwriteFile",
             Type = StateVariable.StateType.Input,
             Value = OverwriteFile.ToString()
         },
         new StateVariable
         {
             Name = "Result",
             Type = StateVariable.StateType.Output,
             Value = Result
         }
     });
 }