16,020,313 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 C++ questions
View Visual Basic questions
View Javascript questions
View .NET 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 HD86_ (Top 9 by date)
HD86_
28-May-17 15:25pm
View
Deleted
I don't get this. If I write List<animal> animals = cats then that should mean that I am open to adding any animal type to the list, even though I initialized it with felines only.
What is the problem in having a list with mixed animal types? Unless there is some technical limitation that prevents it, it seems just an unfortunate limitation.
HD86_
27-May-17 0:49am
View
For building a website you should start by learning HTML.
HD86_
17-Mar-17 12:38pm
View
I made the following test: I built several GeometryModel3D objects with the same material. Then I changed the material for one of them and that changed the material for all the other objects that share the same material. Next I built GeometryModel3D objects each with its own material. I changed the material for one object, but the others were not affected. Conclusion: if I use one material instance for each GeometryModel3D instance, that will occupy more memory.
HD86_
17-Mar-17 11:55am
View
Deleted
I made the following test: I built several GeometryModel3D objects with the same material. Then I changed the material for one of them and that changed the material for all the other objects that share the same material. Next I built GeometryModel3D objects each with its own material. I changes the material for one object, but the others were not affected. Conclusion: if I use a material instance for each GeometryModel3D instance, that will occupy more memory.
HD86_
17-Mar-17 11:30am
View
No, because I don't know how to detect the difference. I'd like a theoretical answer and not only a practical one. Does creating more brush instances occupy more memory than assigning a single brush to many GeometryModel3D objects?
HD86_
1-Mar-17 11:15am
View
Thanks. This comment answers my question.
HD86_
1-Mar-17 0:45am
View
NotPolicallyCorrect's comment answers my question completely. I am not interested in explanations about how the interface works. I only want to know the reason for why we use it.
HD86_
1-Mar-17 0:00am
View
Thanks Garth. Your example could not 'undo the good work' because this is a very simple example and I have already been working with more complex examples as I am creating a WPF app. I understand completely what an interface is and how it works, but I am only trying to understand the reason for why we use them.
HD86_
28-Feb-17 20:30pm
View
Thanks. What you say makes sense to me.
Show More