c#这段代码是什么意思

来源:百度知道 编辑:UC知道 时间:2024/05/30 05:46:53
下面这段代码中为什么接口的方法没有被实际定义,却在类中直接像定义过的那样使用
namespace CommerceLib
{
/// <summary>
/// Standard interface for pipeline sections
/// </summary>
public interface IPipelineSection
{
void Process(OrderProcessor processor);
}
}
namespace CommerceLib
{
/// <summary>
/// Main class, used to obtain order information,
/// run pipeline sections, audit orders, etc.
/// </summary>
public class OrderProcessor
{
internal IPipelineSection CurrentPipelineSection;
internal bool ContinueNow;
internal CommerceLibOrderInfo Order;

public OrderProcessor(string orderID)
{
// get order
Order = CommerceLibAccess.GetOrder(orderID);
}

public OrderProcessor(CommerceLibOrderInfo orderToProcess)
{
// get order
Order = orderToProcess;
}

你Find in files看看,你肯定有一个类实现了IPipelineSection 接口。。

确信没有类实现了这个接口么??

个人觉得不太可能。。哈哈
你Find in files, look in Entire Solution这个IPipelineSection 或者Process方法看看。。