C# - 类文件崩溃 [英] C# - Class File Crashed

查看:110
本文介绍了C# - 类文件崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找不到覆盖的合适方法。



但是,在我的系统意外终止之前没问题。



现在我点击它然后



- >用记事本打开:它显示Null Null Null ...然后继续。

No suitable method found to Override.

But, It was alright before my system terminated unexpectedly.

Now I Right Clicked it then

-> Open with Notepad: It shows Null Null Null...and goes on.

推荐答案

如果你有备份,我会从那里恢复。

如果你没有,那么你很可能会从头开始重新上课。





如果你的系统意外终止,听起来就像它在失败时编写了类文件 - 结果是一个错误或不可读的文件。很可能,teh文件中的数据只是垃圾,并且不可信任。



尝试制作项目文件夹的副本,并正常打开VS - 检查是否类文件甚至可以略微读取,或者VS可以提供​​恢复临时文件。如果确实如此,那就去吧,希望你不要失去太多的工作。



如果你没有备份,你刚刚发现为什么我有一个自动化系统每隔一小时对我的文件进行增量备份......
If you have a backup, I would restore from there.
If you don''t, then the chances are you will have to start the class again pretty much from scratch.


If your system terminated unexpectedly, it sounds like it was writing the class file when it failed - and the results are a mangled or unreadable file. In all probability, the data in teh file is just rubbish, and cannot be trusted.

Try making a copy of your project folder, and opening VS normally - check if the class file is even slightly readable, or VS may offer to restore a temporary file. If it does, go for it and hope you haven''t lost too much work.

And if you don''t have a backup, you have just discovered why I have an automated system doing incremental backups of my files each and very hour...


这篇关于C# - 类文件崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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