using System; using System.Collections.Generic; namespace Best.HTTP.Shared.Databases.MetadataIndexFinders { public sealed class FindDeletedMetadataIndexFinder : IEmptyMetadataIndexFinder where MetadataType : Metadata { public int FindFreeIndex(List metadatas) { for (int i = 0; i < metadatas.Count; ++i) if (metadatas[i].IsDeleted) return i; return metadatas.Count; } } }