K
Kimmo Laine
Hi,
is there a way to get the declaration name/information of the type:
namespace MySpace {
internal class MyClass {
internal void Foo() {
int i = 0;
PrintInfo( i );
}
}
}
// . . .
static void PrintInfo( object o ) {
Type t = o.GetType();
// ? ? ?
}
I want that PrintInfo would print something like "Declaration:
MySpace.MyClass.Foo int i"!
I can get the int-part (hehe), but the rest...
thx
Kimmo Laine
is there a way to get the declaration name/information of the type:
namespace MySpace {
internal class MyClass {
internal void Foo() {
int i = 0;
PrintInfo( i );
}
}
}
// . . .
static void PrintInfo( object o ) {
Type t = o.GetType();
// ? ? ?
}
I want that PrintInfo would print something like "Declaration:
MySpace.MyClass.Foo int i"!
I can get the int-part (hehe), but the rest...
thx
Kimmo Laine