Esempio n. 1
0
        public static IFormatter Append <T>(this IStore <IConditional <object, IFormattable> > @this,
                                            ISelectFormatter <T> parameter)
        {
            var formatter = new Formatter <T>(Compose.Start.A.Selection.Of.Any.AndOf <T>()
                                              .By.Cast.Or.Throw.Select(new Formatters <T>(parameter)));
            var result = new Formatter(@this.Get().Unless(formatter));

            @this.Execute(result);
            return(result);
        }
Esempio n. 2
0
 public Formatters(ISelectFormatter <T> parameter)
     : base((instance, formatter) => new Adapter <T>(instance, formatter.Get), parameter)
 {
 }
Esempio n. 3
0
 public static IFormatter Register <T>(this ISelectFormatter <T> @this)
 => FormatterRegistration.Default.Append(@this);
Esempio n. 4
0
        public static IFormatter Append <T>(this IConditional <object, IFormattable> @this, ISelectFormatter <T> parameter)
        {
            var formatter = new Formatter <T>(Compose.Start.A.Selection.Of.Any.AndOf <T>()
                                              .By.Cast.Or.Throw.Select(new Formatters <T>(parameter))
                                              .Get());
            var result = new Formatter(@this.Then().Unless.Input.IsOf <T>().ThenUse(A.Selection(formatter)).Get());

            return(result);
        }