如何在c#中找到从列表中丢失的对象

编程入门 行业动态 更新时间:2024-10-27 18:32:51
本文介绍了如何在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#中找到从列表中丢失的对象

本文发布于:2023-11-03 07:37:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554590.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   中找到   如何在   列表中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!