View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-19-2016 , 20:28   Re: Dynamic Objects and Properties - v008 - [2016.03.19]
Reply With Quote #39

An example of the changes around .Dispose.

Code:
Dynamic someobj = Dynamic();
Dynamic anotherobj = Dynamic();
someobj.SetObject("anotherobj", anotherobj);

// This dispose call will also call dispose on anotherobj
someobj.Dispose();

// If you dont want anotherobj to be disposed you can use this instead
someobj.Dispose(false);

// And then you can dispose anotherobj later
anotherobj.Dispose();
__________________
Neuro Toxin is offline