开发者

Can partial classes be used for web-services?

Can partial classes be used for web-services or there i开发者_StackOverflows some other way to implement it ?


Partial classes are a compiler feature shared by all of C#, so yes, you can use them for web services.

In fact, it is a feature that is has completely nothing to do with web-services. It simply allows you to split a class over more than one file.

If you want to do so with your web service, you can.


Sure you can - in WCF, if a composite service exposes multiple contracts, we place the implementation .cs in separate partial classes for clarity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜