I know, Oren. My comment was only to try to be more explicit with Michael. On Tue, Feb 22, 2011 at 11:35 AM, Ayende Rahien <[email protected]> wrote:
> To be fair, with PostSharp, we COULD intercept fields. > And the name came from Java, where they also can > > > On Tue, Feb 22, 2011 at 4:22 PM, Fabio Maulo <[email protected]> wrote: > >> The name including "Field" is only a mirage. >> We can't really intercept field access; instead we are intercepting >> autoproperties. >> >> >> On Tue, Feb 22, 2011 at 11:17 AM, Michael DELVA >> <[email protected]>wrote: >> >>> For example: >>> >>> using (var s = SessionFactory.OpenSession()) >>> { >>> var customer = s.Load<Customer>(customerId); >>> customer.name = "Mike"; >>> } >>> >>> would be intercepted by IFieldInterceptorAccessor, whereas >>> >>> using (var s = SessionFactory.OpenSession()) >>> { >>> var customer = s.Load<Customer>(customerId); >>> customer.Name = "Mike"; >>> } >>> >>> would be intercepted by ILazyInitializer ? >>> >>> Am I right? >>> >> >> >> >> -- >> Fabio Maulo >> >> > -- Fabio Maulo
