Is the lack of deterministic destruction in .NET a problem
Answer / kirti
It's certainly an issue that affects component design. If you have objects that maintain expensive or scarce resources (e.g. database locks), you need to provide some way for the client to tell the object to release the resource when it is done. Microsoft recommend that you provide a method called Dispose() for this purpose. However, this causes problems for distributed objects - in a distributed system who calls the Dispose() method? Some form of reference-counting or ownership-management mechanism is needed to handle distributed objects - unfortunately the runtime offers no help with this.
| Is This Answer Correct ? | 0 Yes | 0 No |
What symbol would you use to denote, the start of a code block in razor views?
What is the importance of NonActionAttribute?
If we write return statement in finally block will it works fine or throws any error?
How do you enforce garbage collection in .NET
What is shadowing?
Can I use razor code in javascript in asp.net mvc?
Explain the advantages of asp.net mvc over asp.net?
How we can register the Area in ASP.Net MVC?
what happened when type url in address bar and press enter?
What is NonActionAttribute ?
What's the difference between Java and .NET garbage collectors ?
What are actions in mvc?