/// <summary>
 /// Creates a new instance of ATOM feed metadata.
 /// </summary>
 /// <returns>The newly created ATOM feed metadata.</returns>
 internal static AtomFeedMetadata CreateNewAtomFeedMetadata()
 {
     return(new AtomFeedMetadata
     {
         Authors = ReadOnlyEnumerable <AtomPersonMetadata> .Empty(),
         Categories = ReadOnlyEnumerable <AtomCategoryMetadata> .Empty(),
         Contributors = ReadOnlyEnumerable <AtomPersonMetadata> .Empty(),
         Links = ReadOnlyEnumerable <AtomLinkMetadata> .Empty(),
     });
 }
Esempio n. 2
0
 /// <summary>
 /// true if <paramref name="source"/> is the same instance as ReadOnlyEnumerableOfT.Empty(). false otherwise.
 /// </summary>
 /// <typeparam name="T">The element type of the enumerable.</typeparam>
 /// <param name="source">The enumerable in question.</param>
 /// <returns>Returns true if <paramref name="source"/> is the empty ReadOnlyEnumerableOfT. false otherwise.</returns>
 internal static bool IsEmptyReadOnlyEnumerable <T>(this IEnumerable <T> source)
 {
     return(ReferenceEquals(source, ReadOnlyEnumerable <T> .Empty()));
 }