DefaultEmptyMetadataIndexFinder.cs 384 B

12345678910111213
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Best.HTTP.Shared.Databases.MetadataIndexFinders
  4. {
  5. public sealed class DefaultEmptyMetadataIndexFinder<MetadataType> : IEmptyMetadataIndexFinder<MetadataType> where MetadataType : Metadata
  6. {
  7. public int FindFreeIndex(List<MetadataType> metadatas)
  8. {
  9. return metadatas.Count;
  10. }
  11. }
  12. }