protected BaseMyImmutableClass(BaseMyImmutableClass other)
		{
			this.X = other.X;
			this.Y = other.Y;
			squaredLengthCachedCacheValid = false;
			var children = new List<MyClass>();
			children.AddRange(other.Children);
			Children = new ReadOnlyCollection<MyClass>(children);
		}
Ejemplo n.º 2
0
        protected BaseMyImmutableClass(BaseMyImmutableClass other)
        {
            this.X = other.X;
            this.Y = other.Y;
            squaredLengthCachedCacheValid = false;
            var children = new List <MyClass>();

            children.AddRange(other.Children);
            Children = new ReadOnlyCollection <MyClass>(children);
        }