Hi all
I have a class that contains several variable declarations.
From inside this class, I have methods that get the value of some of the previous variables, not all of them. I think I should have a kind of attribute to know which variables are part of the selection.
For example:
Do you have any idea how I could do that?
Thanks a lot for your help
I have a class that contains several variable declarations.
From inside this class, I have methods that get the value of some of the previous variables, not all of them. I think I should have a kind of attribute to know which variables are part of the selection.
For example:
Code:
public class myclass {
private string myvar1 = null;
[XmlAttribute]
private string myvar2 = null;
private string myvar3 = null;
...
private void getValue() {
// get only the variable that have the [XmlAttribute] attribute
}
}
Do you have any idea how I could do that?
Thanks a lot for your help