Exemplo n.º 1
0
 public static void Register(Customizer <Address> customizer)
 {
     customizer
     .OverrideProtected <ProtectedAddressExtension, string, string>(
         method: a => a.SetValues(null, null),
         with: (a, country, city) => a.SetValues(country + "1", city + "2"))
     ;
 }
Exemplo n.º 2
0
 public static void Register(Customizer <Customer> customizer)
 {
     customizer
     .OverrideProtected <ProtectedCustomerExtension, string>(c => c.GetMiddleName(), c => "van " + c.GetMiddleName())
     ;
 }