I was expecting AddReflectionForTypeMembers to fill the "Description" based on the property Help Summary. In the add-on I think it's implemented like that, but i am not using it in this case. (for reasons explained in other threads regarding merging with other languages).
Off course i can workaround it by looping again through the properties and reflect using System.Reflection but seems a waste of time.
Off course i can workaround it by looping again through the properties and reflect using System.Reflection but seems a waste of time.
private void AddToMemberList(Parameter pParameter)
{
if ( pParameter == null ) throw new ArgumentNullException("pParameter");
if ( pParameter.Type == null ) throw new ArgumentNullException("pParameter.Type");
syntaxEditor1.IntelliPrompt.DropShadowEnabled = true;
syntaxEditor1.IntelliPrompt.MemberList.AddReflectionForTypeMembers(pParameter.Type,
IntelliPromptTypeMemberFlags.Properties | IntelliPromptTypeMemberFlags.Methods
| IntelliPromptTypeMemberFlags.Public
| IntelliPromptTypeMemberFlags.Instance );
syntaxEditor1.IntelliPrompt.MemberList[1].Description = "This is my example description";
}