15,667,280 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View Python questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Rob Bryce (Top 4 by date)
Rob Bryce
8-Apr-11 11:22am
View
http://msdn.microsoft.com/en-us/library/b1yfkh5e(v=VS.100).aspx Again, requiring Dispose instead of Finalize is an implementation detail. Agreed there are uses for Dispose, but in a general case, Finalize appears to provide your clean-up (release resources) AND hide that implementation detail.
Rob Bryce
8-Apr-11 10:22am
View
The native code is, in fact, simply a wrapper. To walk along the ordered set of these objects, the client managed code would make a call to Managed_eh->Next (not show in the original code block).
To implement this call would be Managed_eh->n_this->Next->gc_this. If the managed wrapper itself maintained next & prev pointers, then it would then no longer be a wrapper...
Rob Bryce
8-Apr-11 10:20am
View
The answer is simple: to follow the object-oriented methodology, you should be hiding all implementation details from the user. The fact that it contains/wraps a native object is an implementation detail that should be hidden from the user when it can be (i.e., when it doesn't encapsulate a system resource, for example.)
Rob Bryce
8-Apr-11 10:18am
View
Sorry, my bad, learning...