| File: System\DirectoryServices\AccountManagement\EmptySet.cs | Web Access |
| Project: src\runtime\src\libraries\System.DirectoryServices.AccountManagement\src\System.DirectoryServices.AccountManagement.csproj (System.DirectoryServices.AccountManagement) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Diagnostics; namespace System.DirectoryServices.AccountManagement { internal sealed class EmptySet : BookmarkableResultSet { internal EmptySet() { // Nothing to do } internal override object CurrentAsPrincipal { get { Debug.Fail("EmptySet.CurrentAsPrincipal: Shouldn't be here"); return null; } } internal override bool MoveNext() { // Mimic an empty set return false; } internal override void Reset() { // Nothing to do } internal override ResultSetBookmark BookmarkAndReset() { return new EmptySetBookmark(); } internal override void RestoreBookmark(ResultSetBookmark bookmark) { // Nothing to do } } internal sealed class EmptySetBookmark : ResultSetBookmark { } }