/// <summary>
        /// Gets all resource json:api links objects for the given CLR resource type.
        /// </summary>
        /// <typeparam name="TResource">Type of CLR resource or resource identifier to get links collection for.</typeparam>
        /// <returns>Collection of <c>Links</c> objects in document order.</returns>
        public static IEnumerable <Links> GetResourceLinksCollection <TResource>(this IDocumentReader documentReader)
            where TResource : class, IResource
        {
            Contract.Requires(documentReader != null);

            var clrResourceType            = typeof(TResource);
            var apiResourceLinksCollection = documentReader.GetResourceLinksCollection(clrResourceType);

            return(apiResourceLinksCollection);
        }