Skip to content

ICollectionWrapper<T>

Namespace: SideXP.Core | Inherits from: IEnumerable<T>

public interface ICollectionWrapper<T> : IEnumerable<T>

Qualifies a class as being a container for a collection. This is useful to allow custom property drawers override the GUI of an entire array instead of every items in it.

Type parameters

  • T: The type of the elements in the collection.

Remarks

By convention, a collection marked that implements this interface must have a serialized field named "_elements", which you can get to create custom GUI.