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
victor.andree
NA
5
0
Modifying a property's properties?
Oct 11 2004 12:08 PM
Okay ppl, I have a class: [code] public class Character { private Point _location; public Point Location { get { return _location; } set { _location = value; } } public Character(Point location) { _location = location; } } [/code] Now, how can I modify the properties of Location (Point.X for example)? If I try CharacterObj.Location.X = 1 I get a compile time error (Cannot modify the value of get Location because it is not a variable) Is there any smooth way around this?
Reply
Answers (
7
)
getter+setters "Properties problem"
Fill Treeview from a Database