10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` private NonActionProvider nonaction = new NonActionProvider(); public SettableActionProvider(Action<WebHeaderCollection, Stream> success, Action<WebException> fail, Action<HttpWebRequest> make = null) { if (success == null) { this.success = nonaction.Success; } if (fail == null) { this.fail = nonaction.Fail; } if (make == null) { this.make = nonaction.Make; } this.success = success; this.fail = fail; this.make = make; }
` delegate success/fail/make ,although the default value is assigned, it will eventually be replaced by null;
I think the better way may like this: ` private NonActionProvider nonaction = new NonActionProvider();
public SettableActionProvider(Action<WebHeaderCollection, Stream> success, Action<WebException> fail, Action<HttpWebRequest> make = null) { this.success = success; this.fail = fail; this.make = make; if (success == null) { this.success = nonaction.Success; } if (fail == null) { this.fail = nonaction.Fail; } if (make == null) { this.make = nonaction.Make; } }`
The text was updated successfully, but these errors were encountered:
@j6mes
Sorry, something went wrong.
Can you send a pull request?
Sound good, but haven't write permissions to the repository. also can't fork 2.0.16.83
fixed by #37
No branches or pull requests
`
delegate success/fail/make ,although the default value is assigned, it will eventually be replaced by null;
I think the better way may like this:
` private NonActionProvider nonaction = new NonActionProvider();
The text was updated successfully, but these errors were encountered: