/// <summary> /// Provides an enumerator to access every top-level collection in the database that is part of the given vault. /// </summary> /// <param name="vault">The vault to obtain collections for.</param> /// <returns>A collection enumerator</returns> public IEnumerable <VltCollection> GetTopCollectionsInVault(Vault vault) { return(Rows.Where(c => c.Vault == vault)); }
/// <summary> /// Provides an enumerator to access every collection in the database that is part of the given vault. /// </summary> /// <param name="vault">The vault to obtain collections for.</param> /// <returns>A collection enumerator</returns> public IEnumerable <VltCollection> GetCollectionsInVault(Vault vault) { return(EnumerateFlattenedCollections().Where(c => c.Vault == vault)); }