A list of references to Models. Automatically removes the reference to a Models from its list when it gets deleted.
Use this class to reference multiple Models inside another Model. This will make sure the referenced Models are (de)serialized separately while keeping the references intact.
|Count||The number of Models in the list.|
|Last||The last Model instance in the list. Returns null if the list is empty.|
|Clear||Clears the list, potentially deleting Models if they have no ModelRef(s) left referencing them.|
|Contains||Checks if the list contains a reference to the given Model.|
|Add||Adds a reference to the given Model to the list.|
|Remove||Removes the reference to the given Model from the list, potentially deleting the Model if it has no ModelRef(s) left referencing it.|
|RemoveAt||Removes the reference to the Model at the given index, potentially deleting the Model if it has no ModelRef(s) left referencing it.|