can i impose service contract,operation contract attributes to a structure

Posted by Maheshvishnu under WCF on 9/12/2012 | Points: 10 | Views : 1396 | Status : [Member] | Replies : 3
cant i use service contract,operation contract attributes on a class?

is it mandatory to take interface instead of class

mahesh


Responses

Posted by: Vuyiswamb on: 9/12/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Why do you want to do that ?

Thank you for posting at Dotnetfunda
[Administrator]

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Maheshvishnu on: 9/12/2012 [Member] Starter | Points: 25

Up
0
Down
I read somewhere that we can use service contract,operation contract on class also.

in many applications i found people are using interface only

mahesh

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 9/12/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
its a Good Practice

Thank you for posting at Dotnetfunda
[Administrator]

Maheshvishnu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response