N
Nathan Bullock
Hello Everyone,
Is there anyway to get the fieldinfo object for a specified field in a
class. Something better than telling what its name is, since this
isn't checked by the compiler.
Something maybe like this:
class Foo
{
public int foo;
public Foo()
{
FieldInfo fi = FieldInfo(foo);
// or fi = foo.Field();
Console.Writeline("{0}", fi.Name);
}
}
Nathan Bullock
Is there anyway to get the fieldinfo object for a specified field in a
class. Something better than telling what its name is, since this
isn't checked by the compiler.
Something maybe like this:
class Foo
{
public int foo;
public Foo()
{
FieldInfo fi = FieldInfo(foo);
// or fi = foo.Field();
Console.Writeline("{0}", fi.Name);
}
}
Nathan Bullock