// MonoGame - Copyright (C) The MonoGame Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics { public class NodeContentCollection : ChildCollection { /// /// Creates an instance of NodeContentCollection. /// /// Parent object of the child objects returned in the collection. internal NodeContentCollection(NodeContent parent) : base(parent) { } /// /// Gets the parent of a child object. /// /// The child of the parent being retrieved. /// The parent of the child object. protected override NodeContent GetParent(NodeContent child) { return child.Parent; } /// /// Modifies the value of the parent object of the specified child object. /// /// The child of the parent being modified. /// The new value for the parent object. protected override void SetParent(NodeContent child, NodeContent parent) { child.Parent = parent; } } }