public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { if (reader.TokenType == JsonToken.String) { return(SimulatedActions.All); } return(SimulatedActions.Some(serializer.Deserialize <List <string> >(reader))); }
public ExecuteWatchDescriptor SimulatedActions(SimulatedActions simulatedActions) => Assign(simulatedActions, (a, v) => a.SimulatedActions = v);
public ExecuteWatchDescriptor SimulatedActions(SimulatedActions simulatedActions) => Assign(a => a.SimulatedActions = simulatedActions);
public ExecuteWatchDescriptor SimulatedActions(SimulatedActions simulatedActions) { Self.SimulatedActions = simulatedActions; return(this); }