For instance, suppose each test in the class USES a database connection, a network connection, a very large data structure, or some other resource that's expensive to initialize or dispose of.
例如,假设类中的每个测试都使用一个数据库连接、一个网络连接、一个非常大的数据结构,或者还有一些对于初始化和事情安排来说比较昂贵的其他资源。
To use it, the developer implements a Dispose method for their class, which he then calls when the object is no longer needed.
要使用它,开发人员需要为他们的类实现一个Dispose方法,然后在不再需要对象时调用该方法。
One trader wrote on 10 March 2006: "I don't know how we dispose of the slops and I don't imply we would dump them, but for sure, there must be some way to pay someone to take them."
有一个贸易商在2006年3月10日的一封邮件中写道:“我不知道我们该如何处置这些废油,我也不是暗示将它们倾倒掉,但毫无疑问,肯定有办法付钱让某些人收走它们。”
The United States and Russia signed an agreement to dispose of sixty-eight tons of weapons-grade plutonium. They plan to use the plutonium as fuel for civilian nuclear reactors.
美国和俄罗斯签署协议,计划处置68吨武器级放射性钚,将其做为民用核反应堆的燃料。
She did that for three days, with the ministers calling on her, and the doctors, trying to persuade her to let them dispose of the body.
一连三天她都是这样,不论是教会牧师访问她也好,还是医生想劝她让他们把尸体处理掉也好。
After her training, Henry had told her that he and Ted would split the care of bigger mammals because they thought her too small, for instance, to dispose of a thirty-pound carcass by herself.
紫宸接受培训后亨利告诉她,他和泰特负责大型哺乳动物,因为他们觉得她太娇小,比如要她独自处理一具三十磅重的动物尸体会很困难。
The toughest phase of the downsizing process is finding the heart to dispose things you’ve owned for years, or that have memories attached to them.
缩小规模过程的最难点在于寻找勇气来处理那些你已经使用了很多年,能勾起你很多回忆的东西。
The problem has been how to dispose of the nitrous oxide byproduct, which is far worse for the environment than nitrogen.
问题是如何处置氧化氮副产品,这对环境污染远比氮气更严重。
Some hope: Italian bonds are now a badge of shame for Banks who are rushing to dispose of them.
一些人希冀:意大利债券现在让急于处置这些债券的银行蒙羞。
If you are caring for a sick person, you can wear a mask when you are in close contact with the ill person and dispose of it immediately after contact, and cleanse your hands thoroughly afterwards.
如果是在照顾病人,在与病人密切接触时可戴上口罩,尔后应立即处理口罩,并彻底清洗双手。
In that case, you can request the service from the home interface, passing in null for request and response, and you can dispose of it as you see fit.
在这种情况下,可以从主接口请求该服务,同时为请求和响应传入null,可以在自己认为合适的时候释放它。
But he says nuclear power is not a long-term solution for China's energy needs because the world's uranium stores are limited and it is difficult to properly dispose of nuclear waste.
但是他说,核能对中国来说并不是一个长远的解决办法,因为全世界金属铀的储藏量有限,而且如何妥善处理核废料也是一个难题。
The dispose method lets us clean up any resources that may have been allocated and the compose method is the one that is responsible for the primitive drawing.
dispose方法让我们清除任何已经分配的资源,而compose方法则负责图元绘图的方法。
For example, to face the situation is split into two or three to dispose of the crucial point of the urgency to resolve the situation.
例如,把面对的状况拆成两、三个能够处置的要害点,以化解状况的紧迫性。
For now, at least, Metronet still lives: its planned works will continue while the administrators dispose of the business.
现在,至少Metronet公司还“活着”:它会按原计划继续翻修工作,但是管理人员不再参与其中。
For less frequently used images, you can create or dispose them yourself or use a LocalResourceManager.
对于较为不常用的图像,您可以自行创建或删除之,此外您还可以使用LocalResourceManager。
For example, the automobiles should be equipped with a device which can dispose of waste gas so as to prevent it from polluting air.
例如,汽车应该配备一个设备可以处理废气,以防止污染空气。
One possibility would be for ITA to dispose of its airline-reservations system assets and to merge its QPX flight search business into Google.
有一种可能是ITA先行剥离其机票预订系统业务,然后把QPX航班搜索业务出售给Google。
And the best way to dispose of sludge is using it as a resource for reuse.
而处置污泥最好的方式就是将污泥作为一种资源进行再利用。
Pending completion of liquidation, the foreign investor shall not dispose of the assets of the enterprise, except for the purposes of carrying out the liquidation.
在清算完结前,除为了执行清算外,外国投资者对企业财产不得处理。
Spray irrigation sprinkling water over land to be used for crops. often used to dispose of wastewater from sewage treatment plants.
喷洒灌溉,喷灌把水喷洒于准备种植作物的土地上。常常使用经过污水厂处理过的废水。
There are still safe ways to dispose of microbead-containing products, for people who decide they don't want to use them any more.
对于决心不再使用含微珠产品的人们来说,也有一些安全的处理方法。
By using economic and mathematic analysis to study how to rationally dispose tourist resources, it also supplies proper ways for developing and utilizing them.
运用经济学和数学分析的方法,研究旅游资源的合理配置,为旅游资源的开发利用提供了合理的选择方式。
That the transferor is entitled to dispose his water rights is a part of the precondition for the transfer, otherwise the validity of the contract shall be pending.
转让人享有能够处分的水权是转让的条件之一,否则转让合同的效力待定。
Party A shall have the right to instruct Party B to dispose any of Party B's assets, and use the gains from such disposal for any lawful purposes.
甲方有权指示乙方处置乙方任何资产,并将处置乙方资产的所得用于任何合法目的。
Be responsible for the process trail run and equipment installation; dispose these problems during pre-produce phases.
负责项目工艺调试和设备安装调试,牵头解决调试中产生的各种问题。
Be responsible for the process trail run and equipment installation; dispose these problems during pre-produce phases.
负责项目工艺调试和设备安装调试,牵头解决调试中产生的各种问题。
应用推荐