I have a class.....with different public properties ...

Class A {
public int x; // Non - compilable code..
public float y;
public decimal z;
}

Now can I expose only some of the public properties to an object based on some conditions???

Like:-


[code]
A aObj;

if(someCondition = true)
aObj. (Can I just expose 'x' property and NOT 'y' and 'z' ... ?? ... In Intellisense??)

esle
aOBj. (Can I just expose 'y' property and NOT 'x' and 'z' ... ?? ... In Intellisense??)
[\code]


Is this even possible??
Thanks!