KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I just took an IKM C# test. One of the questions was: Which of the folowing IMPROVE the performance of a C# program? A. Use boxing B. Use unboxing C. Do not use constants D. Use empty destructors E. Use value type instead of reference type In the end I skipped the question, the only possible answer I can see is E. In some situations value types could provide better performance (for small types: no dereferencing required and not on the managed heap [assuming not a member of a reference type]), but that's certainly not always the case.
Tags (comma-separated)
Save Edits
Cancel