TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajesh Singh
821
997
845.9k
WCF service interface
Apr 20 2016 8:17 AM
Is it possible to declare method in service interface without operationcontract attribute?
Example is mention below.
[ServiceContract]
interface IService
{
[OperationContract]
void Display();
//Without Operation contract
void Show();
}
class Service : IService
{
public void Display()
{
throw new NotImplementedException();
}
public void Show()
{
throw new NotImplementedException();
}
}
1. If yes then what is use of it.
Interviewer asked me this question recently. Please help me.
Reply
Answers (
1
)
About html, php and angularjs!!
data in the gridview and expected data in excel