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
twigg
NA
1
0
C# Indexed Properties.
Mar 4 2005 7:07 PM
I'd like to be able to index into properties but the only way to do this I've been able to see is by using the this[int index] property. The limitation of this is that you can only perform 1 indexed property per class. I'd like to have several properties that are indexable. ex. class MyClass { public float Prop1[int index] { get{} set{} } public float Prop2[int index] { get{} set{} } } however it appears that this is not possible. I then turned to nested classes but that has the limitation that I can't access the members of the NESTING class (unless they're static. No use) Has anyone else found this limitation and what are some workarounds?
Reply
Answers (
2
)
How do you build a scroll bar that can pan and zoom?
pausing a print job