Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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 <>));
 }