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
Euclides Matusse
NA
2
4.1k
Get and Set propriety
Jun 7 2013 10:43 AM
What is the
problem with this
when defining
the properties
public
class
UserLogonInfoGroup
{
public
UserLogonInfoGroup()
{ }
public
string
DescriptionGroup {
get
;
set
; }
}
Some error: UserLogonInfo.DescriptionGroup.get' must declare a body because it is not marked abstract or extern
But when I encapsuled the proprerty it´s OK:
private
string
DescriptionGroup;
public
string
DescriptionGroup1
{
get
{
return
DescriptionGroup; }
set
{ DescriptionGroup =
value
; }
}
What´s the diference please i need help about this.
hugs
Reply
Answers (
1
)
MeidaPlayer on winphone 7
C sharp commandline