public static IConfig Create([JetBrains.Annotations.NotNull] IConfigBehavior behavior) { if (behavior is null) { throw new ArgumentNullException(nameof(behavior)); } return(new Config(behavior)); }
public static IPropertyConfig Create([NotNull] this IConfigBehavior behavior) { if (behavior is null) { throw new ArgumentNullException(nameof(behavior)); } return(PropertyConfig.Create(behavior)); }
public static ILocalization Create([NotNull] IConfigBehavior behavior) { if (behavior is null) { throw new ArgumentNullException(nameof(behavior)); } CurrentLocalization.ThrowIfAlreadyInitialized(); CurrentLocalization.Current = new InternalLocalization(behavior); return(Current); }
public Config([JetBrains.Annotations.NotNull] IConfigBehavior behavior) { Behavior = behavior ?? throw new ArgumentNullException(nameof(behavior)); }
public PropertyConfig([NotNull] IConfigBehavior behavior) : base(behavior) { }
public InternalLocalization([NotNull] IConfigBehavior config, ILocalizationBehaviour?behaviour = null) : base(config) { (Comparer, Supported) = Convert(behaviour); }