function PartCacheStatic.Dispose(x)assert(getmetatable(x)==PartCacheStatic,ERR_NOT_INSTANCE:format("\068\105\115\112\111\115\101","\080\097\114\116\067\097\099\104\101\046\110\101\119"))for N=1,#x.Open,1 do x.Open[N]:Destroy()end for N=1,#x.InUse,1 do x.InUse[N]:Destroy()end x.Template:Destroy()x.Open={}x.InUse={}x.CurrentCacheParent=nil x.GetPart=nil x.ReturnPart=nil x.SetCacheParent=nil x.Expand=nil x.Dispose=nil end return PartCacheStatic

function PartCacheStatic:Dispose()
	assert(getmetatable(self) == PartCacheStatic, ERR_NOT_INSTANCE:format("Dispose", "PartCache.new"))
	for i = 1, #self.Open do
		self.Open[i]:Destroy()
	end
	for i = 1, #self.InUse do
		self.InUse[i]:Destroy()
	end
	self.Template:Destroy()
	self.Open = {}
	self.InUse = {}
	self.CurrentCacheParent = nil

	self.GetPart = nil
	self.ReturnPart = nil
	self.SetCacheParent = nil
	self.Expand = nil
	self.Dispose = nil
end

return PartCacheStatic
