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);
		}
Example #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);
        }