Raven.Database.Impl.Synchronization.DatabaseEtagSynchronizer.GetLowestEtag C# (CSharp) Метод

GetLowestEtag() приватный статический Метод

private static GetLowestEtag ( IList documents ) : Etag
documents IList
Результат Etag
		private static Etag GetLowestEtag(IList<JsonDocument> documents)
		{
			if (documents == null || documents.Count == 0)
				return Etag.Empty;

			var lowest = documents[0].Etag;

			for (var i = 1; i < documents.Count; i++)
			{
				var etag = documents[i].Etag;
				if (lowest.CompareTo(etag) <= 0)
					continue;

				lowest = etag;
			}

			return lowest;
		}
	}