public class Europe
{
uint Value1 = 0x12345;
}
public class UnitedStates
{
uint Value1 = 0x54321;
}
private uint Region(object Value)
{
if (EuropeCB.Checked)
{
return Europe.Value;
}
else
{
return UnitedStates.Value;
}
}
How do i go about doing this since it doesnt parse the value as a request for the value that was enterd in the function, you guys got any idea how i can solve this
Further explained
All i want is the uint value returned from 1 of the classes using teh same identifier withing the class
so as you can see there are 2 classes "Europe" and "UnitedStates"
and with the checkbox "EuropeCB" active i want the function Region to return from Class "Europe"instead of "UnitedStates"
So a Call will look like Region(Value1)
With "EuropeCB" checked it should return 0x12345 else it should return 0x54321
P.S it errors on "return Europe.Value" & "return UnitedStates.Value" it says "Class does not contain a definition for value"