IntelliPromptTypeMemberFlags to retrieve constructors

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by a.fernandez
Version: 4.0.0245
Hi everyone,

I am trying to obtain the list of members for a type passed of parameted to the AddReflectionForTypeMembers method. My problem is that all the members are returned less the contructors. Can someone tell me why this method doesn't return the constructurs? The code that I have used to obtain the list of members is the following:
memberList.AddReflectionForTypeMembers(type, IntelliPromptTypeMemberFlags.AllMemberTypes
                        | IntelliPromptTypeMemberFlags.Instance | IntelliPromptTypeMemberFlags.Static
                        | IntelliPromptTypeMemberFlags.Family | IntelliPromptTypeMemberFlags.Public);

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Constructors are not generally callable from within members, so they aren't included here. You could use reflection to determine if there are any constructors though, and add items for those yourself, in addition to your existing code.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.