如何在c#中找到从列表中丢失的对象 [英] how to find a object lost from lists in c#

查看:119
本文介绍了如何在c#中找到从列表中丢失的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表,文件正在连续转移。

一旦任何一个文件完成,将不会出现在列表中。

现在我该如何弄清楚哪个文件已经完成。

解决方案

这看起来像一个完全人为的问题。 不要试图检测文件是否丢失,而是不要丢失文件。至于问题的其余部分,问题没有意义,因为它取决于你的文件处理什么是完成,什么是转移(在哪里,从何处,等等)。请不要澄清,更好地自己考虑一下。如果它不能解决您的问题,请创建一个代码示例,以更实质的方式解释您的问题并提出一些正确的问题。



-SA

I have a list from which files are getting transferred continoulsy.
Once any one file is completed that will not be present in the list .
Now how do i figure out which file has been completed.

解决方案

It looks like a totally artificial question. Don't try to detect if a file is lost, instead, don't loose the files. As to the rest of the problem, the question makes no sense, because it depends on what your file processing does, what is "completed" and what is "transferred" (where, from where, and so on). Please, don't clarify that, better think about it by yourself. If it would not solve your problem, create a code sample explaining your problem in more substantial way and ask some proper questions.

—SA


这篇关于如何在c#中找到从列表中丢失的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆