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
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
DataMember optional in WCF
Rahul Kumar Saxena
Jul 27
2015
Code
3.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
To achieve this use below setting while declaring you Data Member in your WCF:
[DataMember(Name =
"DataMemberName"
, IsRequired=
false
, EmitDefaultValue=
false
)]
public
string
Name
{
} ;
DataMember
DataMember optional
WCF