Posted 19 years ago
by karl
-
Senior Software Architect,
Shelltools, LLC

i'm using syntax editor 3.1.203 (and just downloaded and tried 3.1.204, and i've come across a possible bug
IntelliPromptMemberList mems = editor.IntelliPrompt.MemberList;
mems.Clear();
string mine = "hello";
mems.AddReflectionForTypeMembers(mine.GetType(), IntelliPromptTypeMemberFlags.Methods | IntelliPromptTypeMemberFlags.Properties);
MessageBox.Show(mems.Count.ToString());
the messagebox shows 0.. there are NO methods or properties added. and i've tried this on a variety of types.
this (as well as the code in your C# example, fails. it seems this method always returned no members.
its just hte other namespacewithtypes that returns values, which works godo for types, static members and the like, but i really need to be able to get the methods and properties of a known type. I'm wondering if this is a bug or whether i just don't understand the control well enough.
b.t.w
I just love the control, you guys have done such a good job, especially in thinking out the class hyrachies and relationships..
Karl
IntelliPromptMemberList mems = editor.IntelliPrompt.MemberList;
mems.Clear();
string mine = "hello";
mems.AddReflectionForTypeMembers(mine.GetType(), IntelliPromptTypeMemberFlags.Methods | IntelliPromptTypeMemberFlags.Properties);
MessageBox.Show(mems.Count.ToString());
the messagebox shows 0.. there are NO methods or properties added. and i've tried this on a variety of types.
this (as well as the code in your C# example, fails. it seems this method always returned no members.
its just hte other namespacewithtypes that returns values, which works godo for types, static members and the like, but i really need to be able to get the methods and properties of a known type. I'm wondering if this is a bug or whether i just don't understand the control well enough.
b.t.w
I just love the control, you guys have done such a good job, especially in thinking out the class hyrachies and relationships..
Karl