[nem-en] Information about VS 2005 Integration in English
vc
vc at rsdn.ru
Wed Sep 27 04:15:27 CEST 2006
Hi,
I need some additional information to be provided by the IMember
interface, which is the member source.
Let me explain. Right now, I use the following way to distinguish that
the member is a property getter, setter or something else needed to be
exclude from the completion list:
static IsValid(name : string) : bool
{
!IsPropertyAccessor(name) && !IsEventAccessor(name)
&& !IsOperator(name)
}
static IsPropertyAccessor(name : string) : bool {
name.StartsWith("get_") || name.StartsWith("set_") }
static IsEventAccessor(name : string) : bool {
name.StartsWith("add_") || name.StartsWith("remove_") }
static IsOperator(name : string) : bool
{
name.StartsWith("op_")
}
static IsSpecialName(name : string) : bool {
name.StartsWith("value__") || name.StartsWith("_N_") }
It works for C# and N, but this naming convention might be different in
other .NET languages. So, the question is can we have some more detailed
information where a particular member comes from and what is its parent?
More information about the devel-en
mailing list