Disposes an array of objects without creating a copy of the array.
WARNING: This is an unsafe method that operates directly on the provided array.
Use only when you can guarantee that disposal operations will not modify the array
or trigger events that might modify it during the disposal process.
Parameters
disposables: DisposableItemArray
Array of objects to dispose. The array is NOT copied.
OptionaltrapExceptions: boolean
If true, catches exceptions during disposal instead of throwing them.
Returns void
Example
// Only safe when disposal won't modify the array dispose.these.unsafe(localResourceArray);
Disposes an array of objects without creating a copy of the array.
WARNING: This is an unsafe method that operates directly on the provided array. Use only when you can guarantee that disposal operations will not modify the array or trigger events that might modify it during the disposal process.