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.
精彩评论