C
codymanix
Hi I have following weird problem:
I Have a class with the Name CustomerListView which contains a static field.
Additionally I have a Property in another class which returns a
CustomerListView, and its name is also CustomerListView:
class CustomerListView
{
public const int A = 0;
}
class Test
{
CustomerListView CustomerListView;
Test()
{
int i = CustomerListView.A; // compile error here!!!
}
}
I know I could rename either the class or the field CustomerListView. But,
theoretically, what if I couldn't rename them because the field
CustomerListView is defined in the base class which resides in a thrid party
library?
Is it possible to access the static field A (without using reflection)???
--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu
[noncommercial and no ****ing ads]
I Have a class with the Name CustomerListView which contains a static field.
Additionally I have a Property in another class which returns a
CustomerListView, and its name is also CustomerListView:
class CustomerListView
{
public const int A = 0;
}
class Test
{
CustomerListView CustomerListView;
Test()
{
int i = CustomerListView.A; // compile error here!!!
}
}
I know I could rename either the class or the field CustomerListView. But,
theoretically, what if I couldn't rename them because the field
CustomerListView is defined in the base class which resides in a thrid party
library?
Is it possible to access the static field A (without using reflection)???
--
cody
Freeware Tools, Games and Humour
http://www.deutronium.de.vu
[noncommercial and no ****ing ads]