How do I access a public class property value in a code module other than the one where it was created?
I have created a simple public class and instantiated it in module 1.
public class Cashflow
{
public int x = 100;
}
// code in module 1
Cashflow cf;
cf = new Cashflow();
a = cf.x
// code in module 2
b = cf.x;
I simply want to make the property value visible to separate code modules in application.