Answer: If you do not specify "
[OperationContract] " in any of the methods in your interface then you will get the following error :-
IService1' has zero operations; a contract must have at least one operation
Here,
Iservice is the name of my Interface. you can have your own name.
So, it is mandatory to label "
[OperationContract] " attribute to at least one method while declaring your interface methods or ServiceContract.
Thanks and Regards
Akiii
|
Alert Moderator