/// <summary>
 /// Replaces the current items with the specified items.
 /// </summary>
 /// <remarks>
 /// <para>
 /// To use this method safely either set <paramref name="asReference"/> to false or discard all external
 /// refrences to <paramref name="items"/>.
 /// </para>
 /// </remarks>
 /// <param name="mountPoints">The object to update. (Required)</param>
 /// <param name="items">The items.</param>
 /// <param name="asReference">
 /// If true the internal buffer will be replaced with a reference to <paramref name="items"/>, otherwise
 /// <paramref name="items"/> will be copied.
 /// </param>
 public static void UnsafeReplaceItems(MountPointGroup mountPoints, bool asReference, params MountPoint[] items)
 {
     if (items == null)
     {
         mountPoints.Clear();
     }
     else
     {
         mountPoints.m_Items = asReference ? items : (MountPoint[])items.Clone();
     }
 }
Ejemplo n.º 2
0
 private void ResetMountPointSettings()
 {
     m_MountPoints.Clear();
 }
Ejemplo n.º 3
0
 private void ResetMountPointSettings()
 {
     m_AutoLoadMounts = false;
     m_MountPoints.Clear();
 }