C
Cezar
Hi,
Does anyone know how to get the list of local declared method
of a class using Reflection.
I didn't see a flag like %IsLocal% for MethodInfo...
The code I use now returns all method, locally declared and inherited
<snip>
MethodInfo [] methodsInfo = cl.GetMethods();
foreach(MethodInfo mi in methodsInfo)
{
if (!MethodsHash.ContainsKey(mi.ToString() ))
{
MethodsList.Add(mi.ToString(), "method");
MethodsHash.Add(mi.ToString(),"");
}
}
</snip>
Does anyone know how to get the list of local declared method
of a class using Reflection.
I didn't see a flag like %IsLocal% for MethodInfo...
The code I use now returns all method, locally declared and inherited
<snip>
MethodInfo [] methodsInfo = cl.GetMethods();
foreach(MethodInfo mi in methodsInfo)
{
if (!MethodsHash.ContainsKey(mi.ToString() ))
{
MethodsList.Add(mi.ToString(), "method");
MethodsHash.Add(mi.ToString(),"");
}
}
</snip>