Skip to content
New issue

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

Obsolete SettingsHolder.Set<T>(Action value) overloads #5247

Open
timbussmann opened this issue Aug 28, 2018 · 0 comments
Open

Obsolete SettingsHolder.Set<T>(Action value) overloads #5247

timbussmann opened this issue Aug 28, 2018 · 0 comments

Comments

@timbussmann
Copy link
Contributor

This overload saves the action under the fullname of T but it doesn't act like a factory or something, so it's equal to Set(typeof(T).FullName, action) and you can't do a Get<T>() as that would try to cast the action to T which would most likely fail. The only way to retrieve the action again is via Get<Action>(key).

I can't come up with any reasonable use case for this API?

Includes SetDefault<T>(Action value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants