|
-
January 19th, 2009, 05:24 PM
#1
Possible to do this in C#???
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|