Exemple #1
0
 /// <summary>
 /// Disposes all members and sets all visible members to null.
 /// It can be useful to call this before rebuilding members, so that the previous instances will be pooled and can be reused.
 /// </summary>
 public void DisposeMembersAndClearVisibleMembers()
 {
     DrawerArrayPool.Dispose(ref visibleMembers, false);
     visibleMembers = ArrayPool <IDrawer> .ZeroSizeArray;
     assumeVisibleMembersChangedDuringNextUpdateVisibleMembers = true;
     DrawerArrayPool.DisposeContent(ref members);
     updateCachedValuesFor.Clear();
 }