Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to implement my custom cache that inherits from ObjectCache[^].
Does anybody know how to do this or has source of MemoryCache because refractor doesn't show nothing.

Thanks in advance.
Posted

Reflector worked perfrectly fine for me after opening the System.Runtime.Caching.dll file. MemoryCache disassembles quite nicely.
 
Share this answer
 
Comments
apaka 12-Apr-11 10:15am    
Can u post it here ? Does it have method implementations?
Manfred Rudolf Bihy 12-Apr-11 10:16am    
Get that tool, don't ask for "teh codez".
And yes if something implements an abstract class (a useful one at least) it must have some method implementations.
Dave Kreskowiak 12-Apr-11 13:15pm    
Yeah, that's not going to happen. I'm not posting a code snippet that big.
Manfred Rudolf Bihy 12-Apr-11 10:15am    
Agreed! 5+
apaka 12-Apr-11 10:24am    
OK did it just didn't got idea to use Reflector directly on dll. Thanks anyway.
Why use refractor if you can get Reflector from Red-Gate for about $35.
The other thing is if your want to implement a custom cache why don't you just implement all the stuff that makes ObjectCache abstract?
Another option is to use the MemoryCache type and derive from that.
You could of course consider to do some R&D in this namespace here: http://msdn.microsoft.com/en-us/library/dd985642.aspx[^].

If you run into any difficulties leave a comment.

Happy coding!

-MRB
 
Share this answer
 
This[^] blog has an implementation that may help you. It should at least help to show the use of some of the properties/methods.
 
Share this answer
 
And if you want a free tool, have a look at: ILSpy[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900