Open.Core.PropertyRef.PropertyRef C# (CSharp) Method

PropertyRef() public method

Constructor.
public PropertyRef ( object instance, string name ) : System
instance object The instance of the object that exposes the property.
name string The name of the property.
return System
        public PropertyRef(object instance, string name) : base(instance.GetType(), name)
        {
            // Setup initial conditions.
            this.instance = instance;

            // Wire up events.
            observable = instance as INotifyPropertyChanged;
            if (observable != null) observable.PropertyChanged += OnPropertyChanged;
        }