I have a project with 1.2 and to avoid put every single property virtual
just I created an Interface and worked like this:

public class MyClass : IMyClass

but now with vers. 2  doesn't work anymore and I have put this:
<property name="use_proxy_validator">false</property>

Do I have change in virtual to evoid subtle bugs as Ayende says?




2008/10/30 Ayende Rahien <[EMAIL PROTECTED]>

> The methods needs to be as well. The reasoning is that if you make a call
> on the method, you will use the object data, so we must intercept and handle
> this scenario
>
>
> On Thu, Oct 30, 2008 at 2:58 PM, Fabio Maulo <[EMAIL PROTECTED]> wrote:
>
>> 2008/10/30 Colin Ramsay <[EMAIL PROTECTED]>
>>
>>>
>>> It's the whole class which gets proxied, not just the individual
>>> properties and methods. I believe you can generate an interface to use
>>> as a proxy instead of making them all virtual but I'm not sure if that
>>> would be easier for you or not.
>>
>>
>> Sure the whole class but not all methods and, if you are encapsulating
>> properties, only the properties really need to have virtual accessor
>> modifier.
>> --
>> Fabio Maulo
>>
>>
>>
>>
>
> >
>


-- 
Warning Notice
The information contained in this communication and any documents
transmitted with it are confidential, may be privileged and are intended
solely for the use of the intended recipient. If you are not the addressee
any copying, retransmission, distribution, action taken, or omitted to be
taken in reliance upon it is strictly prohibited and may be unlawful. If you
have received this communication in error please notify us immediately by
e-mail and delete it from your system and destroy any copies of it.

Avviso
Le informazioni contenute in questo messaggio di posta elettronica sono
riservate e confidenziali e ne e' vietata la diffusione in qualunque modo
eseguita.
Qualora Lei non fosse la persona cui il presente messaggio e' destinato, e'
invitata a non diffonderlo, e ad eliminarlo, dandone gentilmente
comunicazione al mittente.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to