我是 C# .net 平台的新手。当我用断点调试代码时,我发现了一个只有方法声明的类( IndexJob属于dtsearch命名空间)。看到一个带有方法声明的类对我来说是新的。我知道接口和其他抽象类会这样做,但这个类不是抽象类,我也没有在解决方案中找到这个类,但我认为它是通过一些程序集调用的。
using System;
using System.Collections.Specialized;
using System.Runtime.ExceptionServices;
namespace dtSearch.Engine
{
public class IndexJob : NetJobBase
{
protected CApiIndexJobForNet* indexJob;
public IndexJob();
public bool ActionAdd { get; set; }
...
...
public void AbortThread();
protected DateTime ConvertToDateTime(dtsFileDate fileDate);
....
....
public static IndexInfo GetIndexInfo(string indexPath);
public void ExecuteInThread();
}
}
我想要清除的是:
1.) 这是什么类型的类,它可以在自身内部声明方法
2.) 这些方法的定义在哪里