public virtual void CopyFrom(MyClass other) { X = other.X; Y = other.Y; Children.Clear(); Children.AddRange(other.Children); Ps = other.Ps; P = other.P; }
protected virtual bool SetPs(MyClass ps) { if (this.ps == ps) return false; NotifyPropertyChanging(PROPERTIES.PS); RemovePsListeners(this.ps); this.ps = ps; AddPsListeners(this.ps); NotifyPropertyChanged(PROPERTIES.PS); return true; }
public virtual MyImmutableClassBuilder AddToChildren(MyClass children) { this.children.Add(children); return this; }
public MyClass(MyClass other) : base(other) { }
public virtual MyImmutableClassBuilder AddToChildren(MyClass children) { this.children.Add(children); return(this); }