dear friends ,
Is it possible to pass the class property to method as parameter ?
for e.g
Is it possible to pass the class property to method as parameter ?
for e.g
Code:
class foo {
int x;
public int number {
set { set x = value;}
get { return x;}
}
}
public class _foo
{
foo f = new foo();
test(f.numer);
void test( ? ) {
// get the property name here
}
}
Comment