Version 2.1.0.0

WeakListPropertyResolver<TList> class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[ResolverPriority(-5)]
public class WeakListPropertyResolver<TList> : BaseOrderedCollectionResolver<TList>, IOrderedCollectionResolver, ICollectionResolver, IApplyableResolver, IRefreshableResolver, IMaySupportPrefabModifications where TList : IList
Inheritance

Type Parameters

TList

Constructors

WeakListPropertyResolver()
public WeakListPropertyResolver()

Properties

ElementType
public override Type ElementType { get; }
MaySupportPrefabModifications
public bool MaySupportPrefabModifications { get; }

Methods

Add(TList, Object)
protected override void Add(TList collection, object value)
Parameters
TList collection

System.Object value

ChildNameToIndex(String)
public override int ChildNameToIndex(string name)
Parameters
System.String name

Returns
System.Int32

ChildPropertyRequiresRefresh(Int32, InspectorPropertyInfo)
public override bool ChildPropertyRequiresRefresh(int index, InspectorPropertyInfo info)
Parameters
System.Int32 index

InspectorPropertyInfo info

Returns
System.Boolean

Clear(TList)
protected override void Clear(TList collection)
Parameters
TList collection

CollectionIsReadOnly(TList)
protected override bool CollectionIsReadOnly(TList collection)
Parameters
TList collection

Returns
System.Boolean

GetChildCount(TList)
protected override int GetChildCount(TList value)
Parameters
TList value

Returns
System.Int32

GetChildInfo(Int32)
public override InspectorPropertyInfo GetChildInfo(int childIndex)
Parameters
System.Int32 childIndex

InsertAt(TList, Int32, Object)
protected override void InsertAt(TList collection, int index, object value)
Parameters
TList collection

System.Int32 index

System.Object value

Remove(TList, Object)
protected override void Remove(TList collection, object value)
Parameters
TList collection

System.Object value

RemoveAt(TList, Int32)
protected override void RemoveAt(TList collection, int index)
Parameters
TList collection

System.Int32 index