简体   繁体   English

object.start()是什么意思?

[英]what does object.start() mean?

Sorry i am new to C#. 抱歉,我是C#的新手。 I have a program, where there is a class CatchFS. 我有一个程序,其中有一个CatchFS类。 The main function in the class , has the code 类中的主要功能,有代码

CatchFS fs = new CatchFS(args); CatchFS fs =新的CatchFS(args);

fs.Start(); fs.Start();

Can someone tell me what it means. 有人可以告诉我这是什么意思。 I hv heard of thread.start() but object.start() is new to me . 我听说过thread.start(),但是object.start()对我来说是新的。 Am i even thinking right ? 我什至在想对吗?

Thanks a lot, Yes it is derived from a class called FileSysetm.cs. 非常感谢,是的,它派生自名为FileSysetm.cs的类。 The start does this : public void Start () { Console.WriteLine("start"); 开始执行此操作:public void Start(){Console.WriteLine(“ start”); Create (); 创造 (); if (MultiThreaded) { mfh_fuse_loop_mt (fusep); 如果(多线程){mfh_fuse_loop_mt(fusep); } else { mfh_fuse_loop (fusep); } else {mfh_fuse_loop(fusep); } } }}

Now im trying to do a fusemount. 现在,我正在尝试做一个保险丝。 The program starts and it hangs. 程序启动并挂起。 there is some call that was not returned and i couldnt figure out which one. 有一些电话没有返回,我无法弄清楚哪一个。 I tried using debug option of monodevelop, but no use, it runs only in my main function and I get thread started and thats it !! 我尝试使用monodevelop的调试选项,但是没有用,它仅在我的主要函数中运行,并且我启动了线程,就这样! I think the file FileSystem.cs is from library Mono.fuse.dll. 我认为文件FileSystem.cs来自库Mono.fuse.dll。 Thanks for all your time. 感谢您的所有宝贵时间。 I hv been looking at this question for 2 whole days, and I dont seem to figureout much as to why the code wont proceed.Im expecting my azure cloud storage to be mounted in this fusemount point. 我已经整整两天在研究这个问题了,我似乎并没有弄清楚为什么代码无法继续进行。我希望我的天蓝色云存储安装在这个保险丝座上。 My aim is after running this code I should be able to do an ls on the mountpoint to get list of contents of the cloud storage. 我的目标是运行此代码后,我应该能够在安装点执行ls来获取云存储内容的列表。 I am also suspecting the mountpoint. 我也怀疑挂载点。 Thanks a lot for providing me all your inputs. 非常感谢您提供我所有的意见。

There is no object.Start method. 没有object.Start方法。 Start must be a method of the CatchFS class or some base class from which CatchFS derives. Start必须是CatchFS类的方法或CatchFS派生的某些基类的方法。

If possible, consult the documentation for the library CatchFS comes from. 如果可能,请查阅CatchFS来自库的文档。 That should hopefully explain what CatchFS.Start does. 希望可以解释CatchFS.Start功能。

If the documentation is sparse or nonexistent but you do have the source code, you can also simply take a look at the CatchFS.Start method yourself and try to figure out what its intended behavior is. 如果文档稀疏或不存在,但您确实有源代码,则您也可以自己查看CatchFS.Start方法,并尝试找出其预期的行为。

If there's no documentation and you have no source code, you're dealing with a black box. 如果没有文档,也没有源代码,那么您将面临黑匣子。 If you can contact the developer who wrote CatchFS , ask him/her what Start does. 如果您可以联系编写CatchFS的开发人员,请询问他/她Start作用。

One final option would be to download .NET Reflector and use that to disassemble the compiled assembly from which CatchFS is loaded. 最后一种选择是下载.NET Reflector,然后使用它来反汇编从中加载CatchFS已编译程序集。 Treat this as a last resort, as code revealed by Reflector is typically less readable than the original source. 将此作为最后的手段,因为Reflector揭示的代码通常比原始源代码可读性差。

StartCatchFS类(或其父类之一)上的一种方法-您必须阅读该类的文档或源代码以了解其实际含义。

According to the MSDN Docs for Object , there is no Start method. 根据MSDN Docs for Object ,没有Start方法。 This must either be a method of CatchFS or one of it's base classes. 这必须是CatchFS的方法或它的基类之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM