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
Lawrence Tsosie
NA
1
0
C# Inheritance and typeof - .Net 2.0
Aug 6 2010 11:41 AM
Good day.
I am developing a .Net 2.0 application using C#. My problem is this: I have a class named Record() and a derived class named Message(). From Message() I have multiple derived classes (BaseMessage(), Struct(), etc.).
I have a folder container object that retains a list of objects and this container object has an attribute AllowableContents:
[AllowableContents(new Type[] { typeof(Record) })]
When I execute my app and right-click the container object, the drop-down list contains my Record() class and all derived classes (Message, BaseMessage, Struct, etc.). I only need to see the Record class listed - can this be done?
I appreciate any assistance in this - thank you.
- Lawrence Tsosie
Reply
Answers (
0
)
Linking Forms in Visual Studio 2008 C#
Dynamically changing datagridview