Hi,
I need to "catch" every object that is tring to be written to memory
(every line like String s = new String() and etc.)
Can I overload it? Can Ioverride it?
I need it to be general in all my solution and with out doing anything
specail in the other projects (like inheritance from interface or
abstract class).
Thanks,
Nimrod
Jon Skeet [C# MVP] - 10 Feb 2008 19:14 GMT
> I need to "catch" every object that is tring to be written to memory
> (every line like String s = new String() and etc.)
Why?
> Can I overload it? Can Ioverride it?
No.
> I need it to be general in all my solution and with out doing anything
> specail in the other projects (like inheritance from interface or
> abstract class).
The only way you could do this would be to hook into the profiling API
- which is designed for profilers rather than normal applications.
What are you trying to achieve?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Cor Ligthert[MVP] - 11 Feb 2008 01:02 GMT
Nimrod,
It should be possible, however be aware that it will cost you a bunch of
memory probably multiple times from the memory that will be used by your
sample.
Cor
Ignacio Machin ( .NET/ C# MVP ) - 11 Feb 2008 16:27 GMT
Hi,
What are you trying to do?

Signature
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
> Hi,
>
[quoted text clipped - 7 lines]
> Thanks,
> Nimrod