You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
This overload saves the action under the fullname of
T
but it doesn't act like a factory or something, so it's equal toSet(typeof(T).FullName, action)
and you can't do aGet<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 viaGet<Action>(key)
.I can't come up with any reasonable use case for this API?
Includes
SetDefault<T>(Action value)
The text was updated successfully, but these errors were encountered: