Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.6.0" />

 CollectionExtensions

static class CollectionExtensions
public static TResult GetOrDefault<TResult>(this Dictionary<RegistrationOption, object> dict, RegistrationOption key)

public static object GetOrDefault(this Dictionary<RegistrationOption, object> dict, RegistrationOption key)

public static bool IsOn(this Dictionary<RegistrationOption, object> dict, RegistrationOption key)

public static bool TryGet(this Dictionary<RegistrationOption, object> dict, RegistrationOption key, out object value)