RegisterIDictionary
Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
RegisterIDictionary<T, U, V>()
Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
public static void RegisterIDictionary<TDictionary, TKey, TValue>() where TDictionary : IDictionary<TKey, TValue>
Remarks
To generate AOT paths for visitors use PropertyBag.RegisterIDictionary instead.
RegisterIDictionary<T, U, V, W>()
Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
public static void RegisterIDictionary<TContainer, TDictionary, TKey, TValue>() where TDictionary : IDictionary<TKey, TValue>
Remarks
The container is required to provide AOT code paths for PropertyVisitor.