protected virtual void LazyInitCompLazy() { if (this.compLazy != null) return; this.compLazy = new Type2(); AddCompLazyListeners(this.compLazy); }
protected BaseType1(Type2 prop2, int prop4, string prop5) { AddProp1Listeners(this.prop1); this.comp = new Type2(); AddCompListeners(this.comp); this.prop2 = prop2; AddProp2Listeners(this.prop2); this.prop4 = prop4; this.prop5 = prop5; ValidateProp2(this.prop2); ValidateProp5(this.prop5); }
private void ValidateProp2(Type2 value) { #pragma warning disable 219 var property = PROPERTIES.PROP2; #pragma warning restore 219 #pragma warning disable 472 // ReSharper disable ConditionIsAlwaysTrueOrFalse if (value == null) throw new ArgumentNullException(property); // ReSharper restore ConditionIsAlwaysTrueOrFalse #pragma warning restore 472 }
protected virtual bool SetProp1(Type2 prop1) { if (this.prop1 == prop1) return false; NotifyPropertyChanging(PROPERTIES.PROP1); RemoveProp1Listeners(this.prop1); this.prop1 = prop1; AddProp1Listeners(this.prop1); NotifyPropertyChanged(PROPERTIES.PROP1); return true; }
protected virtual bool SetProp2(Type2 prop2) { if (this.prop2 == prop2) return false; ValidateProp2(prop2); NotifyPropertyChanging(PROPERTIES.PROP2); RemoveProp2Listeners(this.prop2); this.prop2 = prop2; AddProp2Listeners(this.prop2); NotifyPropertyChanged(PROPERTIES.PROP2); return true; }
public Type2(Type2 other) : base(other) { }
private void OnDeserializing(StreamingContext context) { this.comp = new Type2(); }
public virtual void CopyFrom(Type2 other) { Name = other.Name; }
public Type1(Type2 prop2, int prop4, string prop5) : base(prop2, prop4, prop5) { }