开发者

Can partial classes be used for web-services?

开发者 https://www.devze.com 2023-01-10 18:08 出处:网络
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 we

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

精彩评论

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