Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Memory allocation for dynamic parameters
Amresh S
Feb 16 2017 5:18 AM
214
Reply
Hi All,
I'm having a doubt, whether the dynamic parameters are allocated memory and cleaned by grabage collector? Please refer the below code snippet:
string
a = myFunction(
null
,
new
myType());
Here, "new myTyep()" is the dynamically created parameter. Will it be ok to do so. It is fine for me to send "null" also. But, my question is, will it cause any unwanted memory usage of hidden symbols refered or it will be mamaged by the garbage collector?
Thanks in Advance.
Regards,
Amresh S.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
web service using web url need help
Binding Combobox selection to Togglebutton IsChecked propert