internal protected ObservablePropertyBase(ObjectBase obParent, ObservablePropertyList oplNotifyCollection, string sPropertyName) { Debug.Assert(obParent != null); Debug.Assert(oplNotifyCollection != null); Debug.Assert(!string.IsNullOrEmpty(sPropertyName)); this.Parent = obParent; this.NotifyCollection = oplNotifyCollection; this.PropertyName = sPropertyName; obParent.ObservablePropertyList.Add(this); }
public ObservableProperty(ObjectBase obParent, ObservablePropertyList oplNotifyCollection, string sName) : base(obParent, oplNotifyCollection, sName) { m_bIsNullableType = !m_type.IsValueType || (m_type.IsGenericType && m_type.GetGenericTypeDefinition() == typeof(Nullable <>)); }