Click here to Skip to main content
15,887,414 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use IHTMLDocument2 with .NET 2.0 Webbrowser Pin
cweeks786816-May-06 8:13
cweeks786816-May-06 8:13 
QuestionDynamic Events (C#)... Pin
Shy Agam6-May-06 2:34
Shy Agam6-May-06 2:34 
AnswerRe: Dynamic Events (C#)... Pin
mav.northwind6-May-06 3:38
mav.northwind6-May-06 3:38 
AnswerRe: Dynamic Events (C#)... Pin
Guffa6-May-06 3:40
Guffa6-May-06 3:40 
GeneralRe: Dynamic Events (C#)... Pin
Shy Agam6-May-06 4:00
Shy Agam6-May-06 4:00 
QuestionProperty that is an array, bound to a PropertyGrid Pin
-Dy6-May-06 2:31
-Dy6-May-06 2:31 
AnswerRe: Property that is an array, bound to a PropertyGrid Pin
Josh Smith6-May-06 6:13
Josh Smith6-May-06 6:13 
QuestionHow can I determine number of references to an object ? Pin
_awatts6-May-06 2:10
_awatts6-May-06 2:10 
I the days of COM we had reference counting, which i beleive probably still exists within .Net in some form or other otherwise the gargabe collector wouldn't be able to do it's job.

I basically want to code a simple but semi intelligent cache, where upon an object being added to the cache it remains there whilst there's more than one reference to it. One of the references being the cach of course. But when only the cache has a reference and maintains that single reference for around say 5 mins, after 5 mins it unloads it. I'd like the cache to manage this without the business object having to know anything about the cache, otherwise I could probably place a call within the business objects dispose() to decrement a reference count of some form.

The reason for this is to create a smart datalayer and reduce the number of trips to the database for certain business objects.

Or is there another way???? Wink | ;)

Andy
AnswerRe: How can I determine number of references to an object ? Pin
S. Senthil Kumar6-May-06 7:34
S. Senthil Kumar6-May-06 7:34 
QuestionSelecting more than one file types in GetFiles method Pin
Rizwan Rathore6-May-06 0:49
Rizwan Rathore6-May-06 0:49 
AnswerRe: Selecting more than one file types in GetFiles method Pin
alexey N6-May-06 1:37
alexey N6-May-06 1:37 
GeneralRe: Selecting more than one file types in GetFiles method Pin
Rizwan Rathore6-May-06 2:03
Rizwan Rathore6-May-06 2:03 
GeneralRe: Selecting more than one file types in GetFiles method Pin
leppie6-May-06 3:25
leppie6-May-06 3:25 
Questionhow to create dataset programmativally ? Pin
hdv2126-May-06 0:24
hdv2126-May-06 0:24 
AnswerRe: how to create dataset programmativally ? Pin
Josh Smith6-May-06 6:26
Josh Smith6-May-06 6:26 
Questionusing API Pin
RimiAsh5-May-06 23:31
RimiAsh5-May-06 23:31 
AnswerRe: using API Pin
hdv2126-May-06 0:27
hdv2126-May-06 0:27 
QuestionError in TAPI3 Application Pin
biruk_haileye5-May-06 22:25
biruk_haileye5-May-06 22:25 
Questionhow to pass arraylist from C# function to javascript ? Pin
tjpraveen235-May-06 20:21
tjpraveen235-May-06 20:21 
AnswerRe: how to pass arraylist from C# function to javascript ? Pin
led mike5-May-06 21:03
led mike5-May-06 21:03 
GeneralRe: how to pass arraylist from C# function to javascript ? Pin
tjpraveen235-May-06 21:17
tjpraveen235-May-06 21:17 
GeneralRe: how to pass arraylist from C# function to javascript ? Pin
leppie5-May-06 21:53
leppie5-May-06 21:53 
GeneralRe: how to pass arraylist from C# function to javascript ? Pin
tjpraveen235-May-06 23:16
tjpraveen235-May-06 23:16 
GeneralRe: how to pass arraylist from C# function to javascript ? Pin
leppie5-May-06 23:55
leppie5-May-06 23:55 
QuestionSnakes and Ladders Game In Visual C .NET Pin
desertrose124@hotmail.com5-May-06 19:35
desertrose124@hotmail.com5-May-06 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.