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
Marc
NA
205
54.3k
Property Modifier
Dec 12 2014 10:42 AM
I have a property with read/write capability. This particular property points to the log file. What I wanted to know is what is the best modifier to attach to my property "set," so that no one can modify it?
Example:
public static string writeToFile { get;
internal
set; }
or
public static string writeToFile { get;
protected
set; }
Is one of these better than the other? Or is there a better way to protect set?
Reply
Answers (
7
)
regex 12122014
ERROR- inavalid token BOOL in class