my question is, if it's possible, to do something like this:
public Class Test
{
public int Number { get; set; }
private string text;
public string Text
{
if (Number > 5)
{
set {text = value;}
get {return text;}
}
}
}
See Question&Answers more detail:os