c# accessors

  • Thread starter Thread starter ramo9941
  • Start date Start date
R

ramo9941

İ have a property like this.

[TypeConverterAttribute(typeof(AConverter))]
public class Expandable
{
[NotifyParentProperty(true)]
public Color Color
{
get { return _a; }
set { _a = value; }
}
}

and use above code:

Expandable _exp;
public Expandable Exp
get { return _exp; }
set { _exp = value; }

If user change Color in Properties at right side of the visual studio
editor, i want invoke Exp set value but Color set invoke.
How can i do this?
 
ok, sorry my english.

i change Exp value by visual studio editor's properties and I watch debug.
When these changing occurs, Expandable class Color property change so i want
signals to Exp property's set method.
And
Expandable class used by other properties similiar "public Expandable Exp;",
like this "public Expandable Exp2;" so above signaling changable. how can i
know whom called Expandable class Color property?

i hope this is helpfull.

Peter Duniho said:
[...]
If user change Color in Properties at right side of the visual studio
editor, i want invoke Exp set value but Color set invoke.

The phrase "i want invoke Exp set value but Color set invoke" has no clear
meaning in the English language. It doesn't make any sense.

Care to try rephrasing your question so that you are actually describing
what you are trying to do?

Pete
 
i read your above link's web page, i knew most of them and i have used my
project. i hope INotifyPropertyChanged event but nothing because this event
requires datasource and i does not want to use it. Advice
"RefreshPropertiesAttribute" but it is not good solution.

so thanks your help, i'm going to change my code.
 
Back
Top