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