Пример #1
0
		public virtual void CopyFrom(MyClass other)
		{
			X = other.X;
			Y = other.Y;
			Children.Clear();
			Children.AddRange(other.Children);
			Ps = other.Ps;
			P = other.P;
		}
Пример #2
0
		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;
		}
Пример #4
0
		public MyClass(MyClass other)
		: base(other)
		{
		}
Пример #5
0
 public virtual MyImmutableClassBuilder AddToChildren(MyClass children)
 {
     this.children.Add(children);
     return(this);
 }